#include<bits/stdc++.h>
using namespace std;
int main(){
   ios::sync_with_stdio(0);
   cin.tie(0);
   string S;
   cin >> S;
   int l =S.length();
   if (S[l-1]=='1' || S[l-1]=='0' || S[l-1]=='6' || S[l-1]=='8') cout << "pon";
   else if (S[l-1]=='2' || S[l-1]=='4' || S[l-1]=='5' || S[l-1]=='7' || S[l-1]=='9') cout << "hon";
   else cout << "bon";
}
