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