#include<iostream>

using namespace std;

int main(void)
{
  int n; cin>>n;
  int i=n%10;
  
  if(i==3){puts("bon");}
  else if((i==0)||(i==1)||(i==6)||(i==8)){puts("pon");}
  else{puts("hon");}
  
  return 0;
}