#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int checkNum(ll i) {
  if (i == 2 || i == 4 || i == 7 || i == 9)
    return 0;
  else if (i == 3)
    return 1;
  else
    return -1;
}
int main() {
  ll n;
  cin >> n;
  if (checkNum(n % 10) == 0)
    cout << "hon";
  else if (checkNum(n % 10) == -1)
    cout << "pon";
  else
    cout << "bon";
  return 0;
}
