#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long T;
  T = 1;
  while (T--) {
    long long n;
    long long t;
    while (n) {
      t = n % 10;
      n /= 10;
    }
    string ans;
    if (t == 2 || t == 4 || t == 5 || t == 7 || t == 9) {
      ans = "hon";
    } else if (t == 0 || t == 1 || t == 6 || t == 8) {
      ans = "pon";
    } else if (t == 3) {
      ans = "bon";
    }
    cout << ans;
  }
  return 0;
}
