#include<iostream>#include<cstdio>#include<cmath>using namespace std;int a[2];int main(){int p,b=0,flag=1;scanf("%d",&p);for(int i=2;i<=p/2;i++){if(p%i==0){printf("composite");return 0;}}printf("prime");return 0;}