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