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