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