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