題目來源:judgegirl from ntu prof. pangfeng Liu
Task Description
Write a program to count the number of integers which can be written as ... and respectively.
統計有多少整數被 除餘 、餘 、...、餘 。
Input format
The first line has the number of input integers . Each of the following lines has an input integer. The last line has .
Output format
the number of integers which can be written as ... and .
Sample input 1
5123453
Sample output 1
122
Sample input 2
1031415926533
Sample output 2
433