#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans;
  cin >> n;
  ans = n % 10;
  if (ans == 3)
    cout << "bon";
  else if ((ans % 2 == 1 && ans >= 5) || (ans % 2 == 0 && ans <= 4))
    cout << "hon";
  else
    cout << "pon";
}
