#include <bits/std++.h>
using namespace std;

int main{
  int a, b;
  cin>>a;
  b=a%10;
  if(b==2||b==4||b==5||b==7||b==9){
    cout<<"hon"<<endl;
  }
  if(b==0||b==1||b==6||b==8){
    cout<<"pon"<<endl;
  }
  else{
    cout<<"bon"<<endl;
  }
}
