#include <bits/stdc++.h>
using namespace std;
using vi=vector<int>;


int main(){
  int i,j;
  string N;
  cin>>N;
  if(N.at(N.size()-1)-'0'==3)cout<<"bon"<<endl;
  else if(N.at(N.size()-1)-'0'==0||N.at(N.size()-1)-'0'==1||N.at(N.size()-1)-'0'==6||N.at(N.size()-1)-'0'==8)cout<<"pon"<<endl;
  else cout<<"hon"<<endl;
}
  