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