def gcd(a,b):
  if a % b == 0:
    return b
  else:
    return gcd(b, a%b)
  
  
N = int(input())
As = list(map(int, input().split()))

t = As[0]
 
for a in As:
  t = gcd(t,a)
  
if t == 1:
  print('setwise coprime')