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