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