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