#include <bits/stdc++.h>
using namespace std;
const int maxn = 5e5 + 10;
int w[maxn];
int main(void) {
  ios_base::sync_with_stdio(false);
  std::ios::sync_with_stdio(false);
  int n, k;
  cin >> n;
  int f = n % 10;
  map<int, int> m;
  if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    cout << "hon" << '\n';
  } else if (n == 0 || n == 1 || n == 6 || n == 8) {
    cout << "pon" << '\n';
  } else {
    cout << "bon" << '\n';
  }
}
