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