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