Let be a non-empty sequence of natural numbers, all of them strictly larger than 1, and let stand as usual for the greatest common divisor of and . We say that is a friend of if and only if at least one of these conditions hold:
;
is a friend of some , and is also a friend of .
Write a program such that, given a sequence of numbers, computes the size of the largest set of friends in it.
Input consists of several cases. Every case begins with a number , followed by different integer numbers, all them between 2 and 100000.
For every case, print the size of the largest set of friends.
Input
4 21 2 25 14 3 5 18 7
Output
3 1