Count the number of -digit positive integers for which the sum of digits in the binary and decimal representations is the same. (N = 1..10).
A positive integer (N = 1..10) is given in the input file.
Output a single integer—the answer to the problem.
Beispiel 1