#include <bits/stdc++.h>
using namespace std;
int a[1000000 + 1];
int N;
const int cm = 1 << 20;
char cn[cm], *ci = cn, ct;
inline int getint() {
  int A = 0;
  while ((ct = *ci++) >= '0') A = A * 10 + ct - '0';
  return A;
}
int main() {
  fread(cn, 1, cm, stdin);
  N = getint();
  for (int i = 0; i < N; ++i) {
    ++a[getint()];
  }
  int is_pairwise_coprime = 1;
  if (is_pairwise_coprime) {
    printf("pairwise coprime\n");
  } else {
    printf("setwise coprime\n");
  }
  return 0;
}
