#include <bits/stdc++.h>
using namespace std;
const long long maxn = 2 * (1e5 + 5);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long i, j, t, n, m, k, arr[maxn];
  cin >> n;
  while (n > 0) {
    arr[i++] = n % 10;
    n /= 10;
  }
  if (i == 1) {
    if (arr[0] == 2 || arr[0] == 4 || arr[0] == 5 || arr[0] == 9 ||
        arr[0] == 7) {
      cout << "hon"
           << "\n";
    } else if (arr[0] == 1 || arr[0] == 6 || arr[0] == 8) {
      cout << "pon"
           << "\n";
    } else {
      cout << "bon"
           << "\n";
    }
  } else if (i == 2) {
    if (arr[1] == 2 || arr[1] == 4 || arr[1] == 5 || arr[1] == 9 ||
        arr[1] == 7) {
      cout << "hon"
           << "\n";
    } else if (arr[1] == 1 || arr[1] == 6 || arr[1] == 8) {
      cout << "pon"
           << "\n";
    } else {
      cout << "bon"
           << "\n";
    }
  } else if (i == 2) {
    if (arr[2] == 2 || arr[2] == 4 || arr[2] == 5 || arr[2] == 9 ||
        arr[2] == 7) {
      cout << "hon"
           << "\n";
    } else if (arr[2] == 1 || arr[2] == 6 || arr[2] == 8) {
      cout << "pon"
           << "\n";
    } else {
      cout << "bon"
           << "\n";
    }
  }
  return 0;
}
