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