#include <iostream>
using namespace std;
int main(){
int x;
cin>>x;
bool multipleof3 = x%3==0;
bool multipleof5 = x%5==0;
if(multipleof3 && multipleof5){
cout<<"multipleof3&multipleof5";
}else {
cout<<"NOT";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKXsKaW50IHg7CgljaW4+Png7Cglib29sIG11bHRpcGxlb2YzID0geCUzPT0wOwogICAgYm9vbCBtdWx0aXBsZW9mNSA9IHglNT09MDsKICAgIGlmKG11bHRpcGxlb2YzICYmIG11bHRpcGxlb2Y1KXsKICAgIAljb3V0PDwibXVsdGlwbGVvZjMmbXVsdGlwbGVvZjUiOwogICAgfWVsc2UgewogICAgCWNvdXQ8PCJOT1QiOwogICAgfQoKCgoKCXJldHVybiAwOwp9