#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MAX = LLONG_MAX;
const ll MIN = LLONG_MIN;
typedef struct S {
  int a;
  int b;
} Object;
int main() {
  ll N;
  cin >> N;
  N = N % 10;
  string ans = "hon";
  if (N == 3) {
    ans = "bon";
  } else if ((N == 3) || (N == 1) || (N == 6) || (N == 8)) {
    ans = "pon";
  }
  cout << ans << endl;
}
