#include<bits/stdc++.h>
using namespace std;
int main(){
double a;
cin>>a;
if (a>=92.8) cout<<"jin";
else if (a>=85.6) cout<<"yin";
else if (a>=82.1) cout<<"tong";
else cout<<"sorry";
return 0;
}
/**************************************************************
Problem: 1668
User: LYY001
Language: C++
Result: Accepted
Time:12 ms
Memory:2072 kb
****************************************************************/