z-cifre
Mr. Little Z asks:
How many N digit numbers (N is not an odd number) exist so the sum of the first N/2 digits is equal to the product of the last N/2 digits.
InputThe first line of the standard input contains the non-odd number N, 2 <= N <= 1000.
OutputTo the standard output write only one number that represents the answer to Mr. Little Z's question. Write the number with modulus 10000
Input:
Output:
4Output:
207Input:
Output:
2Output:
9Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.