ACMSGURU 107  987654321 problem
987654321 problem
Problem Description
For given number N you must output amount of Ndigit numbers, such, that last digits of their square is equal to 987654321.
Input
Input contains integer number N (1<=N<=106)
Output
Write answer to the output.
Sample Input
8
Sample Output
0
Solution
1 
