#include <bits/stdc++.h>
using namespace std;
void solve() {
  int N;
  cin >> N;
  if (N < 10) {
    if (N == 0 || N == 1 || N == 6 || N == 8) cout << "pon";
    if ((N == 2 || N == 4 || N == 5 || N == 7 || N == 8)) cout << "hon";
    if (N == 3) cout << "bon";
  }
  if (N >= 10 || N < 100) {
    if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) cout << "pon";
    if ((N % 10 == 2 || N % 10 == 4 || N % 10 == 5 || N % 10 == 7 ||
         N % 10 == 8))
      cout << "hon";
    if (N % 10 == 3) cout << "bon";
  }
  if (N >= 100 || N < 1000) {
    if (N % 100 == 0 || N % 100 == 1 || N % 100 == 6 || N % 100 == 8)
      cout << "pon";
    if ((N % 100 == 2 || N % 100 == 4 || N % 100 == 5 || N % 100 == 7 ||
         N % 100 == 8))
      cout << "hon";
    if (N % 100 == 3) cout << "bon";
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  solve();
  return 0;
}
