#include <bits/stdc++.h>
using namespace std;

#define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);

#define MAXX 500005
#define INF INT_MAX

#define PI   3.14159265358979323846264338327950

#define PB push_back
#define PF push_front
#define F first
#define S second

#define fixx(n) fixed << setprecision(n)

#define ll 	 long long

#define mod  1000000007




int main()
{
	FAST;
	int n;
	cin >> n;
	int x;
	cin >> x;
	int m = x;
	int ct = 0, tk = 0;
	for(int i = 1; i < n; i ++){
		int a;
		cin >> a;
		if(a % 2){
			tk ++;
		}
		else{
			ct ++;
		}
		m = __gcd(m, a);
	}
	if(m != 1){
		cout << "not coprime";
		return 0;
	}
	if(ct == 1){
		cout << "pairwise coprime";
		return 0;
	}
	cout << "setwise coprime";
	return 0;
}