#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a;
  cin >> a;
  int b = 0;
  for (int i = 10; i < 11; i++) {
    b = a % 10;
    a /= 10;
  }
  if (b == 2 || b == 4 || b == 5 || b == 7 || b == 9) {
    cout << "hon" << endl;
  } else if (b == 0 || b == 1 || b == 6 || b == 8) {
    cout << "pon" << endl;
  } else if (b == 3) {
    cout << "bon" << endl;
  }
}
