#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin>>n;
    if (n >= 10000 && n < 100000) {
        cout << "wan" << endl;
    } else if (n >= 100000 && n < 1000000) {
        cout << "shi wan" << endl;
    } else if (n >= 1000000 && n < 10000000) {
        cout << "bai wan" << endl;
    } else if (n >= 10000000 && n < 100000000) {
        cout << "qian wan" << endl;
    } else if (n >= 100000000 && n < 1000000000) {
        cout << "yi" << endl;
    } else if (n >= 1000000000 && n <= 9999999999) {
        cout << "shi yi" << endl;
    }
}
/**************************************************************
	Problem: 1322
	User: huanghengyi
	Language: C++
	Result: Accepted
	Time:13 ms
	Memory:2072 kb
****************************************************************/