#include <bits/stdc++.h>
using namespace std;
int main() {
  int sum = 0, num, num1;
  cin >>　num;
  num1 = num;
  while (0 < num1) {
    num1 = (num1 / 10);
    sum++;
  }
  sum = sum - 1;
  while (sum > 0) {
    num = num / 10;
  }
  switch (num) {
    case 3:
      std ::cout << "bon" << endl;
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      std ::cout << "pon" << endl;
      break;
    default:
      std ::cout << "hon" << endl;
      break;
  }
  return 0;
}
