#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 = 0, j, t, n, m, k, arr[maxn];
  cin >> n;
  while (n > 0) {
    arr[i++] = n % 10;
    n /= 10;
  }
  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";
  }
  return 0;
}
