#include <bits/stdc++.h>
using namespace std;
const int64_t mod = 1000000007;
const int64_t tmpMod = 998244353;
int gcd(int a, int b) {
  if (a % b == 0) {
    return (b);
  } else {
    return (gcd(b, a % b));
  }
}
int main() {
  int64_t N, g;
  bool k = false;
  cin >> N;
  vector<int64_t> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A[i];
    if (i != 0)
      g = gcd(A[i], g);
    else
      g = A[0];
    if (g != 1) k = true;
  }
  if (k)
    cout << "setwise coprime" << endl;
  else if (g == 1)
    cout << "setwise coprime" << endl;
  else
    cout << "not coprime" << endl;
}
