#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s = to_string(n);
  if (s[0] == '3')
    cout << "bon";
  else if (s[0] == '0' || s[0] == '1' || s[0] == '6' || s[0] == '8')
    cout << "pon";
  else
    cout << "hon";
}
