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