#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, a;
  cin >> n;
  if (n / 10 == 0)
    a = n;
  else
    a = n / 10;
  if (a == 3)
    cout << "bon";
  else if (a == 0 || a == 1 || a == 6 || a == 8)
    cout << "pon";
  else
    cout << "hon";
  return 0;
}
