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