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

int main() {
  string s;
  cin >>s;
  int a;
  a = s.size();
  if(s.at(a-1)=='3'){
    cout <<"bon" <<endl;
  }
  else if(s.at(a-1)=='0'||s.at(a-1)=='1'||s.at(a-1)=='6'||s,at(a-1)=='8'){
    cout <<"pon" <<endl;
  }
  else{
    cout <<"hon" <<endl;
  }
}