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