#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int odds = 0;
  for (int i = 1; i <= n; ++i) {
    int temp;
    cin >> temp;
    if (temp & 1) {
      ++odds;
      cout << temp << "\n";
    }
  }
  if (!odds)
    cout << "not coprime";
  else if (n - odds <= 1)
    cout << "pairwise coprime";
  else
    cout << "setwise coprime";
}
