#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
  cin >> N;
  if (N >= 10 && 100 > N) {
    N = N - (N / 10 * 10);
  }
  if (N >= 100) {
    N = N - (N / 10 * 10);
  }
  string ans = "hon";
  if (N == 3) {
    ans = "bon";
  }
  if (N == 0 || N == 1 || N == 6 || N == 8) {
    ans = "pon";
  }
  cout << ans << endl;
}
