#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  int n = k % 10;
  if (n == 3) {
    cout << "bon"
         << "\n";
  }
  if (n == 0 || n == 1 || n == 6 || n == 8) {
    cout << "pon"
         << "\n";
  } else
    cout << "hon"
         << "\n";
}
