#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  string s;
  cin >> N;
  if (N % 10 == 2, 4, 5, 7, 9) {
    s = "hon";
  } else if (N % 10 == 0, 1, 6, 8) {
    s = "pon";
  } else {
    s = "bon";
  }
  cout << s << endl;
}
