#include <bits/stdc++.h>
using namespace std;
string solve(string c) {
  switch ((c[0] - '0')) {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      return "hon";
    case 0:
    case 1:
    case 6:
    case 8:
      return "pon";
    case 3:
      return "bon";
  }
}
int main() {
  string inputline;
  cin >> inputline;
  cout << solve(inputline) << endl;
}
