#include <bits/stdc++.h>
using namespace std;
int main() {
  string num;
  cin >> num;
  int val = num[num.size() - 1] - '0';
  if (val == 2 || val == 4 || val == 5 || val == 9) {
    cout << "hon" << endl;
  }
  if (val == 0 || val == 1 || val == 6 || val == 8) {
    cout << "pon" << endl;
  }
  if (val == 3) {
    cout << "bon" << endl;
  }
  return 0;
}
