#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int judge;
  if (n < 10)
    judge = n % 1;
  else if (n < 100)
    judge = n % 10;
  else if (n < 1000)
    judge = n % 100;
  if (judge == 3)
    cout << "bon" << endl;
  else if (judge == 0 || judge == 1 || judge == 6 || judge == 8)
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
}
