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