#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int N, nx, e, ecnt, a, con = 0;
  cin >> N;
  nx = N;
  if (N % 10 == 3) {
    cout << "bon" << endl;
    return 0;
  } else if ((N % 10 == 0) || (N % 10 == 1) || (N % 10 == 6) || (N % 10 == 8)) {
    cout << "hon" << endl;
    return 0;
  }
  cout << "pon" << endl;
  return 0;
}
