#include <bits/stdc++.h>
using namespace std;
const int N = 1000003;
int a[N];
int gcd(int x, int y) {
  while (x % y) {
    int r = x % y;
    x = y;
    y = r;
  }
  return y;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int sum;
  cin >> sum;
  for (register int i = 2; i <= n; ++i) {
    cin >> a[i];
    sum = gcd(sum, a[i]);
  }
  if (sum == 1)
    cout << "setwise coprime\n";
  else
    cout << "not coprime\n";
  return 0;
}
