#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int N = 2e6 + 4;
int main() {
  string s;
  cin >> s;
  if (s.back() == '3')
    cout << "bon";
  else if (s.back() == '0' or s.back() == '0' or s.back() == '6' or
           s.back() == '8')
    cout << "pon";
  else
    cout << "hon";
  return 0;
}
