// In the name of god
#include <bits/stdC++.h>
#pragma GCC optimze("02")
using namespace std;
using ll=long long;
const ll maxn=1e5+5,inf=1e18+18;
ll n,m,a;
int main(){
	ios::sync_with_stdio(false) , cin.tie(0) , cout.tie(0);
	cin>>n;
	if(n%10==3)cout<<"bon";
	else if(n%10==0||n%10==1||n%10==6||n%10==8)cout<<"pon";
	else cout<<"hon";
}
