#abc200c. [abc200_c]Ringo's Favorite Numbers 2
[abc200_c]Ringo's Favorite Numbers 2
Problem Statement
Ringo loves the integer . Solve the problem below for him.
Given a sequence of positive integers, find the pair of integers satisfying all of the following conditions:
- ;
- is a multiple of .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
6
123 223 123 523 200 2000
Sample Output 1
4
For example, for , is a multiple of .
We have four pairs satisfying the conditions: .
Sample Input 2
5
1 2 3 4 5
Sample Output 2
0
There may be no pair satisfying the conditions.
Sample Input 3
8
199 100 200 400 300 500 600 200
Sample Output 3
9