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