#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a;
  cin >> n;
  if (n >= 10, n <= 99) {
    a = n % 10;
    if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) cout << "hon";
    if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon";
    if (a == 3) cout << "bon";
  }
  if (n >= 100, n <= 999) {
    a = n % 100;
    if (a > 100) {
      a = a % 10;
      if (a == 2 || n == a || a == 5 || a == 7 || a == 9) cout << "hon";
      if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon";
      if (a == 3) cout << "bon";
    }
  }
  if (n < 10) {
    a = n;
    if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) cout << "hon";
    if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon";
    if (a == 3) cout << "bon";
  }
  return 0;
}
