import math
N = int(input())
A = list(map(int,input().split()))

gcda = A[0]
for i in range(1,N):
    gcda = math.gcd(gcda,A[i])
    if gcda != 1:
        ans = 'not coprime'
        break
else:
    ans = 'setwise coprime'
print(ans)