#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  int d;
  while (a != 0) {
    if (a / 10 == 0) d = a;
    a /= 10;
  }
  if (d == 3)
    cout << "ban" << endl;
  else if (d == 0 || d == 1 || d == 6 || d == 8)
    cout << "hon" << endl;
  else
    cout << "pon" << endl;
}
