#include<iostream>
using namespace std;
int main()
{
  int n,last;
  cin>>n;
   last=n%10;
   
    if(last==2||last==4||last==5||last==7||last==9)
       cout<<"hon";
    else if(last==0||last==1||last=6||last==8)
       cout<<"pon";
    else 
       cout<<"bon";
  return 0;
}