#include <bits/stdc++.h>
using namespace std;
;
int main() {
  int N, M;
  cin >> N;
  if (N < 10) {
    if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9) {
      cout << "hon" << endl;
    }
  } else {
    M = N - (N / 10) * 10;
    if (M == 0 || M == 1 || M == 6 || M == 8) {
      cout << "pon" << endl;
    }
    if (M == 3) {
      cout << "bon" << endl;
    }
  }
}
