It's
Subtasks
- (20 points)
- (80 points) No additional constraints.
Input Specification
A single integer
Output Specification
The answer to the problem, on a single line.
Sample Input 1
Copy
13
Sample Output 1
Copy
2
Explanation for Sample 1
The only two numbers are
Sample Input 2
Copy
40
Sample Output 2
Copy
6
Explanation for Sample 2
The only valid numbers are
Comments
This comment is hidden due to too much negative feedback. Show it anyway.
You don't need to check every number. Consider the implications of the numbers only having the digits 2 and 3.