#include <bits/stdc++.h>
using namespace std;
vector<long long int> t[1000000];
vector<long long int> tcount[1000000];
vector<long long int> input(1000000, 0);
void inp(int k) {
  for (int jjj = 0; jjj < k; jjj++) {
    long long int temp;
    cin >> temp;
    input[jjj] = (temp);
  }
}
int main() {
  string input;
  long long int t, s, n, n1, n2, n3, k;
  cin >> n;
  n = n % 10;
  if (n == 1 || n == 0 || n == 6 || n == 8) {
    cout << "pon";
  }
  if (n == 3) {
    cout << "bon";
  }
  if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    cout << "hon";
  }
}
