AdvancedRating 1600
Largest Divisible Group
Choose the largest group of the distinct positive numbers such that for every pair, one divides the other. Print its size.
Input
n (≤ 1000), then n distinct positive integers.
Output
One integer.
Sample 1
Input
3 1 2 3
Output
2
Sample 2
Input
4 1 2 4 8
Output
4
Output appears here