#include <bits/stdc++.h>
using namespace std;
int main() {
  　string A;
  　cin >> A;
  　int B;
  　B = A.size();
  　if (A.at(B - 1) == '3') {　cout << "bon" << endl; }
  else if (A.at(B - 1) == '0' || A.at(B - 1) == '1' || A.at(B - 1) == '6' ||
           A.at(B - 1) == '8') {
    cout << "pon" << endl;
  }
  else {
    cout << "hon" << endl;
  }
}
