#include<bits/stdc++.h>

#define EB emplace_back
#define int long long
#define F first
#define S second
#define N 500005
#define all(x) x.begin(),x.end()
#define endl '\n'
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)


using namespace std;


int32_t main()
{
    IOS;

    int tt=1;
	//cin >> tt;
	while (tt--)
	{
		string s; cin >> s;
		int n = s.size();
		n = s[n - 1] - '0';
		if(n == 2 or n == 4 or n == 5 or n == 7 or n == 9) cout << "hon";
		else if(n == 3) cout << "bon";
		else cout << 	"pon";
		
	}
    return 0;
}
