1. The nth number
Since learning prime numbers, Xiao Ming likes the numbers 2, 3 and 5. Of course, if only the three numbers of 2, 3 and 5 appear in a number, he also likes it, such as 222, 2355, and 223355. Now he hopes that you can help him write a program to quickly calculate the number 2, 3, and 5 The nth number consisting of three numbers from small to large, of course, also includes 2, 3, and 5.
Input description: a
single set of
input data occupies one line for each set of input data, and each line enters a positive integer n.(n<= 1000)
Output description:
Each group of output data occupies 1 line, that is, the nth number that meets the requirements.
Sample input:
3
Sample output:
5
2. Reverse pentadecimal order
Write a program, first reverse a positive decimal integer [need to remove the leading 0], then convert it into a pentadecimal positive integer, and finally output the pentadecimal positive integer.
Input description:
single input.
The input of each set of test data occupies one line, and a positive decimal integer can be input (n<=100000)
Output description:
The output of each set of test data occupies one line, and the endless positive integers obtained after the output are converted.
Sample input:
1000
sample output :
1
Tip:
Example 2: Input: 77267 Output: 4420102