#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll gcd(ll a, ll b) {
  if (a % b == 0)
    return (b);
  else
    return (gcd(b, a % b));
}
ll lcm(ll a, ll b) { return a * b / gcd(a, b); }
int main() {
  int n;
  cin >> n;
  int tmp;
  if (n >= 100) {
    tmp = n % 10;
    if (tmp == 2 || tmp == 4 || tmp == 5 || tmp == 7) {
      cout << "hon" << endl;
    } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
      cout << "pon" << endl;
    } else {
      cout << "bon" << endl;
    }
  } else if (n >= 10 && n < 100) {
    tmp = n % 10;
    if (tmp == 2 || tmp == 4 || tmp == 5 || tmp == 7) {
      cout << "hon" << endl;
    } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
      cout << "pon" << endl;
    } else {
      cout << "bon" << endl;
    }
  } else {
    tmp = n;
    if (tmp == 2 || tmp == 4 || tmp == 5 || tmp == 7) {
      cout << "hon" << endl;
    } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
      cout << "pon" << endl;
    } else {
      cout << "bon" << endl;
    }
  }
}
