#include <bits/stdc++.h>
using namespace std;
int gcd(int x, int y) { return (x % y) ? gcd(y, x % y) : y; }
int main() {
  int n, a, b;
  cin >> n >> a;
  for (int i = 1; i < n; i++) {
    cin >> b;
    a = gcd(a, b);
  }
  if (a == 1) {
    cout << "setwise coprime" << endl;
  } else {
    cout << "not coprime" << endl;
  }
  return 0;
}
