#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  std::cin >> N;
  int d = N % 10;
  string ans;
  switch (N) {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      ans = "hon";
      break;
    case 3:
      ans = "bon";
      break;
    default:
      ans = "pon";
      break;
  }
  cout << ans << "\n";
  return 0;
}
