#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  int a = t % 10;
  if (t == 0 || t == 1 || t == 6 || t == 8) {
    cout << "pon";
  }
  if (t == 2 || t == 4 || t == 5 || t == 7 || t == 9) {
    cout << "hon";
  }
  if (t == 3) {
    cout << "bon";
  }
  return 0;
}
