#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(0);
  string s;
  cin >> s;
  if (s.back() == '2' or s.back() == '4' or s.back() == '5' or
      s.back() == '7' or s.back() == '9')
    cout << "hon";
  else if (s.back() == '0' or s.back() == '1' or s.back() == 6 or
           s.back() == '8')
    cout << "pon";
  else
    cout << "bon";
  return 0;
}
