#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n, x;
  string ans;
  cin >> n;
  if (n > 99) {
    x = n % 100;
  } else if (n > 9) {
    x = n % 10;
  } else {
    x = n;
  }
  if (x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
    ans = "hon";
  } else if (x == 0 || x == 1 || x == 6 || x == 8) {
    ans = "pon";
  } else {
    ans = "bon";
  }
  cout << ans << endl;
  return 0;
}
