Sum of digits#1681

Sum of digits

1 second
64 megabytes
Easy

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).

Input

A positive integer (N = 1..10) is given in the input file.

Output

Output a single integer—the answer to the problem.

Examples

Example 1

Loading
Loading