#include <bits/stdc++.h>
using namespace std;
int main(){
	long long n;
	cin>>n;
	if(n>=1000000000) cout<<"shi yi";
	else if(n>=100000000) cout<<"yi";
		else if(n>=10000000) cout<<"qian wan";
			else if(n>=1000000) cout<<"bai wan";
				else if(n>=100000) cout<<"shi wan";
					else if(n>=10000) cout<<"wan";
	return 0;
	}

/**************************************************************
	Problem: 1322
	User: ljl2
	Language: C++
	Result: Accepted
	Time:15 ms
	Memory:2072 kb
****************************************************************/