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