#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(!cin.tie(0));
  string s;
  cin >> s;
  int n;
  n = s.size();
  char c = s.at(n - 1);
  if (s.at(n - 1) == '3') cout << "bon";
  if (c == '0' || c == '1' || c == '6' || c == '8')
    cout << "pon";
  else
    cout << "hon";
}
