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