#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n;
  cin >> n;
  int mod = n % 10;
  if (mod == 2 || mod == 3 || mod == 5 || mod == 7 || mod == 9) {
    cout << "hon" << endl;
  } else if (mod == 0 || mod == 1 || mod == 6 || mod == 8) {
    cout << "pon" << endl;
  } else {
    cout << "bon" << endl;
  }
  return 0;
}
