#include <bits/stdc++.h>
using namespace std;
int GetDigit(int num) {
  int digit = 0;
  while (num != 0) {
    num /= 10;
    digit++;
  }
  return digit;
}
int main() {
  int N;
  cin >> N;
  int digit = GetDigit(N);
  int one_digit = pow(10, digit - 1);
  int res = N % one_digit;
  if (res == 0) res = N;
  if (res == 2 || res == 4 || res == 5 || res == 7 || res == 9)
    cout << "hon" << endl;
  else if (res == 0 || res == 1 || res == 6 || res == 8)
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
}
