#include<bits/stdc++.h>
using namespace std;
int main(){
  int s;
  cin>>s;
  if(s%10==3)cout<<"bon"<<endl;
  else if(s%10==0||s%10==1||s%10==6||s%10==8) cout<<"pon"<<endl;
  else cout<<"hon"<<endl;
}