/*
author : nit1n
*/
#include<bits/stdc++.h>
#define int long long
using namespace std ;


signed main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL) ;

	int n ; 
	cin >> n ; 
	vector<int> a(n) ; 
	for(int i = 0 ; i < n ; ++i)
		cin >> a[i] ; 
	int g = a[0] ; 
	for(int i = 1; i < n ; ++i)
	{
		g = __gcd(a[i], g) ; 
	}
	if(g == 1)
		cout << "setwise coprime" ; 
	else 
		cout << "not coprime" ; 
}
