#include <iostream>
using namespace std;

int main(void){
  int l,i,a[2];
  while(cin>>l){
    a[i] = l;
    cout << a[i];
    i++;
  }
  if(a[2]==2||a[2]==4||a[2]==5||a[2]==7||a[2]==9){
    cout<<"hon"<<"\n";
  }
  
  else if(a[2]==0||a[2]==1||a[2]==6||a[2]==8){
    cout<<"pon"<<"\n";
  }
  
  else if(a[2]==3){
    cout<<"bon"<<"\n";
  }
 
  
}

