#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  int n = (int)s.size();
  --n;
  if (s[n] == '3')
    cout << "bon\n";
  else if (s[n] == '0' || s[n] == '1' || s[n] == '6' || s[n] == '8') {
    cout << "pon\n";
  } else
    cout << "hon\n";
  return 0;
}
