The citizens of Dmojistan are arranging a Christmas gathering! The -th citizen has a jolliness of , and a group of citizens is festive if the smallest jolliness of a citizen in that group is a divisor of the jolliness of every citizen in the group. To ensure that the gathering is as exciting as possible, the citizens want to split themselves into some number of groups, where each group is festive and the number of groups is minimized. Please determine the number of groups in such an arrangement.
Subtask 1 [20%]
Subtask 2 [80%]
No additional constraints.
The first line contains an integer .
The second line contains integers .
Output a single integer, the answer to the problem.
8 3 15 10 6 4 16
The citizens may be divided into festive groups as follows: .