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