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