N = int(input())
a = list(map(int, input().split()))
import fractions
ans = a[0]
for i in range(1, N):
    ans = fractions.gcd(ans, a[i])
if ans == 1:
  print('setwise coprime')
else:
  print('not coprime')