#include<bits/stdc++.h> using namespace std; int main(){ int t; scanf("%d", &t); if(t%3==0&&t%5==0)cout<<"can"<<endl; else cout<<"cannot"<<endl; return 0; }