#include <bits/stdc++.h>
using namespace std;
bool ssh(int i){
for(int o=2;o<i;o++){
if(i%o==0)return 0;
}
return 1;
}
int main(){
int i;
cin>>i;
for(int y=2;y<sqrt(i);y++){
int o=i/y;
if(ssh(y)&&ssh(o)&&o*y==i){
cout<<"It's a Tongtong number.";
return 0;
}
}
cout<<"It's not a Tongtong number.";
return 0;
}
/**************************************************************
Problem: 1151
User: zhouhongyi
Language: C++
Result: Accepted
Time:11 ms
Memory:2072 kb
****************************************************************/