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