Zealous Zeyu is looking for a brand new set of arms today!
There are
Zeyu is looking to replace
What is the minimal number of unique prime factors of such a set? Zeyu needs to know this in order to make the best possible purchase.
Input Specification
The first line will contain one integer,
The second line will contain
Read carefully: It is guaranteed that
Output Specification
Output
Constraints
Subtask 1 [5%]
Subtask 2 [25%]
Subtask 3 [70%]
No additional constraints.
Sample Input 1
4
2 20 10 15
Sample Output 1
1 2 2 3
Sample Input 2
3
7 153 10
Sample Output 2
1 3 5
Comments