#include<iostream>

using namespace std;


int main() {
  int N; cin >> N;
  set<int> s1{2,4,5,7,9}, s2{0,1,6,8}, s3{3};
  if (s1.find(N%10) != s1.end()) {
    cout << "hon" << endl;
  }
  else if (s2.find(N%10) != s2.end()) {
    cout << "pon" << endl;
  }
  else {
    cout << "bon" << endl;
  }
  return 0;
}