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