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

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