You are given N line segments. Print the number of subsets of these lines that form a regular polygon. A polygon is regular if and only if all of the edges of it are of equal length.
Input format
Output format
Print the answer modulo 109+7.
Constraints
1≤N≤1061≤Ai≤108
[3, 3, 3]
[4, 4, 4] (4 ways)
[4, 4, 4, 4]