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