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