#abc177e. [abc177_e]Coprime
[abc177_e]Coprime
Problem Statement
We have integers. The -th number is .
is said to be pairwise coprime when holds for every pair such that .
is said to be setwise coprime when is not pairwise coprime but .
Determine if is pairwise coprime, setwise coprime, or neither.
Here, denotes greatest common divisor.
Constraints
Input
Input is given from Standard Input in the following format:
Output
If is pairwise coprime, print pairwise coprime
; if is setwise coprime, print setwise coprime
; if neither, print not coprime
.
Sample Input 1
3
3 4 5
Sample Output 1
pairwise coprime
, so they are pairwise coprime.
Sample Input 2
3
6 10 15
Sample Output 2
setwise coprime
Since , they are not pairwise coprime. However, since , they are setwise coprime.
Sample Input 3
3
6 10 16
Sample Output 3
not coprime
, so they are neither pairwise coprime nor setwise coprime.