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