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