#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int p = n % 10;
  if (p == 2 || p == 4 || p == 5 || p == 7 || p == 9)
    cout << 'hon' << endl;
  else if (p == 0 || p == 1 || p == 6 || p == 8)
    cout << 'pon' << endl;
  else
    cout << 'bon' << endl;
}
