Decrease
Statement
Goal
Given decimal number.Convert to binary and remove the last digit.
Convert result to octal and remove the last digit.
Convert result to hexadecimal and remove the last digit.
Print result in decimal.
Input
Integer N > 1000
Output
Integer
Constraints
Example
Input
1001
Output
3
Game modes
Fastest
Test cases
Test 1 Test
Input
1001
Output
3
Validator 1 Validator
Input
1030
Output
4
Test 2 Test
Input
54321
Output
212
Validator 2 Validator
Input
12345
Output
48
Test 3 Test
Input
777777
Output
3038
Validator 3 Validator
Input
555555
Output
2170
Test 4 Test
Input
123456789
Output
482253
Validator 4 Validator
Input
987654321
Output
3858024
Test 5 Test
Input
888888444444
Output
3472220486
Validator 5 Validator
Input
777777444444
Output
3038193142
Test 6 Test
Input
100000000000
Output
390625000
Validator 6 Validator
Input
111111111111
Output
434027777
Solution language
Solution
Stub generator input