#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string n;
  cin >> n;
  int len = n.size();
  if (n[len - 1] == 2 || n[len - 1] == 4 || n[len - 1] == 5 ||
      n[len - 1] == 7 || n[len - 1] == 9)
    cout << "hon" << '\n';
  else if (n[len - 1] == 0 || n[len - 1] == 1 || n[len - 1] == 6 ||
           n[len - 1] == 8)
    cout << "pon" << '\n';
  else if (n[len - 1] == 3)
    cout << "bon" << '\n';
  return 0;
}
