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