#include <bits/stdc++.h>
using namespace std;
template <class T>
inline void read(T &res) {
  char c;
  T flag = 1;
  while ((c = getchar()) < '0' || c > '9')
    if (c == '-') flag = -1;
  res = c - '0';
  while ((c = getchar()) >= '0' && c <= '9') res = res * 10 + c - '0';
  res *= flag;
}
int main() {
  string s;
  cin >> s;
  if (s[s.length() - 1] == '6' || s[s.length() - 1] == '0' ||
      s[s.length() - 1] == '1' || s[s.length() - 1] == '8') {
    cout << "hon" << endl;
  } else if (s[s.length() - 1] == '2' || s[s.length() - 1] == '4' ||
             s[s.length() - 1] == '5' || s[s.length() - 1] == '7' ||
             s[s.length() - 1] == '9') {
    cout << "pon" << endl;
  } else {
    cout << "bon" << endl;
  }
}
