#include<bits/stdc++.h>
using namespace std;
int main(){
	float n;
	cin>>n;
	if (n>=92.8){
			cout<<"jin"<<endl;
		}
		else if (n<92.8 && n>=85.6){
			cout<<"yin"<<endl;
		}
		else if (n<85.6 && n>=82.1){
			cout<<"tong"<<endl;
		}
			else {
				cout<<"sorry"<<endl;
			}
	return 0;
}
/**************************************************************
	Problem: 1668
	User: xiaojingxuan
	Language: C++
	Result: Wrong Answer
****************************************************************/