#include <bits/stdc++.h>
using namespace std;
long long basic() {
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
  return 0;
}
bool comp(long long a, long long b) { return a > b; }
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long n;
  cin >> n;
  if (n % 10 == 2 or n % 10 == 4 or n % 10 == 7 or n % 10 == 9) {
    cout << "hon";
  }
  if (n % 10 == 0 or n % 10 == 1 or n % 10 == 6 or n % 10 == 8) {
    cout << "pon";
  }
  if (n % 10 == 3) {
    cout << "bon";
  }
  return 0;
}
