#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  int n;
  cin >> n;
  string s = to_string(n);
  if (s[0] == '2' || s[0] == '4' || s[0] == '5' || s[0] == '7' || s[0] == '9') {
    cout << "hon";
  } else if (s[0] == '3')
    cout << "bon";
  else
    cout << "pon";
  cout << '\n';
}
