#include <bits/stdc++.h>
using namespace std;
int main() {
  int sum = 0, num;
  cin >>　num;
  while (0 < num) {
    num = (num / 10);
    sum++;
  }
  switch (num / (10 ^ sum)) {
    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;
}
