#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[100];
  int len;
  cin >> a;
  for (int i = 0; i < strlen(a); i++) {
    if (a[i] == '3') {
      cout << "bon";
      break;
    }
  }
  for (int i = 0; i < strlen(a); i++) {
    if (a[i] == '0' || a[i] == '1' || a[i] == '6' || a[i] == '8') {
      cout << "pon";
      break;
    }
  }
  for (int i = 0; i < strlen(a); i++) {
    if (a[i] == '2' || a[i] == '4' || a[i] == '5' || a[i] == '7' ||
        a[i] == '9') {
      cout << "hon";
      break;
    }
  }
}
