#include<bits/stdc++.h>
using namespace std;
int main(){
int i;
cin>>i;
bool t=true;
for(int k=2;k<=i-1;k++){
if(i%k==0){
cout<<"合数";
t=false;
break;
}
}
if(t){
cout<<"素数";
}
return 0;
}
感谢大家
(很久的文章了,没检查)