#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int l, i, a[2];
  while (cin >> l) {
    a[i] = l;
    cout << a[i];
    i++;
  }
  if (a[2] == 2, 4, 5, 7, 9) {
    cout << "hon"
         << "\n";
  } else if (a[2] == 0, 1, 6, 8) {
    cout << "pon"
         << "\n";
  } else if (a[2] == 3) {
    cout << "bon"
         << "\n";
  }
}
