#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  cin >> num;
  if (num >= 0 && num <= 999) {
    int x = num;
    int counter = 1;
    while (true) {
      if (x < 10) break;
      x = x / 10;
      counter += 1;
    }
    int a[counter];
    for (int i = counter - 1; i >= 0; i--) {
      a[i] = num % 10;
      num /= 10;
    }
    if (a[0] == 2 || a[0] == 4 || a[0] == 5 || a[0] == 7 || a[0] == 9)
      cout << "hon" << endl;
    else if (a[0] == 0 || a[0] == 1 || a[0] == 6 || a[0] == 8)
      cout << "pon" << endl;
    else
      cout << "bon" << endl;
  }
  return 0;
}
