#include <bits/stdc++.h>
using namespace std;
void Ok() {
  long int a, b, c, d, e, h, t, i, j, k, l, m, n;
  long int ans_1, ans_2, ans_3, ans_4, cnt = 0, Max, Min, flag, temp, sum = 0;
  double aa, bb, cc, dd, ee, ff, gg;
  char aaa[113], bbb[113], ccc, ddd;
  string spc, in, store[13];
  cin >> a;
  ans_1 = a % 10;
  if (ans_1 == 2 || ans_1 == 4 || ans_1 == 7 || ans_1 == 9)
    cout << "hon" << endl;
  else if (ans_1 == 0 || ans_1 == 1 || ans_1 == 6 || ans_1 == 8)
    cout << "pon" << endl;
  else if (ans_1 == 3 || ans_1 == 5)
    cout << "bon" << endl;
  return;
}
int main() {
  Ok();
  return 0;
}
