Given N positive integers, divide them in two disjoint
non-empty groups in such a way that the greatest common divisor of each group is greater than 1.
Input file format
Input file contains integer N, followed by N integers
a1a2… aN.
Output file format
Output file must contain numbers belonging to the first group, followed by 0 and then
by numbers belonging to the second group.
If there is no solution, output a single number − 1.
If there is more than one solution, output any of them.