#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 100 == 3)
    cout << "bon";
  else if (n % 100 == 0 && n % 100 == 1 && n % 100 == 6 && n % 100 == 8)
    cout << "pon";
  else
    cout << "hon";
}
