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