#include <bits/stdc++.h>
using namespace std;
void solve();
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  int p = t % 10;
  if (p == 2 || p == 4 || p == 7 || p == 9)
    cout << "hon";
  else if (p == 0 || p == 1 || p == 6 || p == 8)
    cout << "pon";
  else if (p == 3)
    cout << "bon";
  return 0;
}
