#include<iostream>
using namespace std;
int main(void){
  int a;
  string str;
  cin >> a;
  if((a % 10) == 3){
    str = 'bon';
  }
  else if(((a % 10) == 0) || ((a % 10) == 1) ((a % 10) == 6) ((a % 10) == 8)){
    str = 'pon';
  }
  else{
    str = 'hon';
  }
  cout << str << endl;
}
