#include<iostream> using namespace std; int main(){ int m; cin>>m; if(m%3==0&&m%5==0){ cout<<"can"<<endl; } else{ cout<<"cannot"<<endl; } return 0; }