#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
string ans[10]={"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};
int main(){
	ll n;
	cin>>n;
	cout<<ans[n%10];
	return 0;
}
