#include <bits/stdc++.h>
using namespace std;
int main() {
  string n;
  cin >> n;
  if (n[0] == 2 || n[0] == 4 || n[0] == 5 || n[0] == 7 || n[0] == 9) {
    cout << "hon";
    return 0;
  }
  if (n[0] == 0 || n[0] == 1 || n[0] == 6 || n[0] == 8) {
    cout << "pon";
    return 0;
  }
  if (n[0] == 3) {
    cout << "bon";
    return 0;
  }
  return 0;
}
