#include <bits/stdc++.h>
using namespace std;
int arr[1000];
int main() {
  int n, cnt = 0;
  cin >> n;
  while (n > 0) {
    arr[cnt++] = n % 10;
    n /= 10;
  }
  int flag = 0;
  for (int i = 0; i < cnt; i++) {
    if (arr[i] == '3') {
      flag = 1;
      cout << "bon" << endl;
      break;
    }
    if ((arr[i] == 0) || (arr[i] == 1) || (arr[i] == 6) || (arr[i] == 8)) {
      flag = 1;
      cout << "pon" << endl;
      break;
    }
  }
  if (!flag) cout << "hon" << endl;
  return 0;
}
