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