#include <bits/stdc++.h>
using namespace std;
int main() {
int n;cin>>n;
string x= to_string(n);
int n=x.length();
if(x[n-1]==3)
cout<<"bon"<<endl;
else if(x[n-1]==0||x[n-1]==1||x[n-1]==6||x[n-1]==8)
cout<<"pon"<<endl;
else
cout<<"hon";


	return 0;
}