107. 987654321 problem
time limit per test: 0.25
sec. For given number N you must output amount of N-digit numbers, such, that last digits of their square is equal to 987654321. Input Input contains integer number N (1<=N<=10^{6}) Output Write answer to the output. Sample Input 8 Sample Output 0 |