#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  if (a[sizeof(a) - 2] == 2 || a[sizeof(a) - 2] == 4 || a[sizeof(a) - 2] == 5 ||
      a[sizeof(a) - 2] == 7 || a[sizeof(a) - 2] == 2)
    cout << "hon";
  else if (a[sizeof(a) - 2] == 0 || a[sizeof(a) - 2] == 1 ||
           a[sizeof(a) - 2] == 6 || a[sizeof(a) - 2] == 8)
    cout << "pon";
  else if (a[sizeof(a) - 2] == 3)
    cout << "bon";
  return 0;
}
