#include <bits/stdc++.h>
using namespace std;
template <class T>
void print(vector<T>& V, bool spaced = true) {
  string space;
  spaced ? space = " " : space = "";
  for (int i = 0; i < V.size(); i++) {
    cout << V[i] << space;
  }
  cout << '\n';
}
template <class T>
void printendl(vector<T>& V) {
  for (int i = 0; i < V.size(); i++) {
    cout << V[i] << '\n';
  }
}
template <class T>
T gcd(T a, T b) {
  T r;
  while (b != 0) {
    r = a % b;
    a = b;
    b = r;
  }
  return a;
}
template <class T>
T lcm(T a, T b) {
  return a / gcd(a, b) * b;
}
template <class T>
T Max(T a, T b) {
  return (a < b) ? b : a;
}
template <class T>
T Min(T a, T b) {
  return (a < b) ? a : b;
}
bool isPalindrome(string str) {
  int length = str.length();
  for (int i = 0; i < (length / 2); i++)
    if (str[i] != str[length - 1 - i]) return false;
  return true;
}
void reverseStr(string& str) {
  int n = str.length();
  for (int i = 0; i < n / 2; i++) swap(str[i], str[n - i - 1]);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  int n = s.length();
  if (s[n - 1] == 3) {
    cout << "bon" << '\n';
  } else if (s[n - 1] == 0 || s[n - 1] == 1 || s[n - 1] == 6 || s[n - 1] == 8) {
    cout << "pon" << '\n';
  } else {
    cout << "hon" << '\n';
  }
  return 0;
}
