#include <bits/stdc++.h>
using namespace std;
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: Compile Error
****************************************************************/