#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 % 2 == 0 || a % 5 == 0 || a % 7 == 0 || a % 9 == 0)
    cout << "hon"
         << "\n";
  else if (a % 0 == 0 || a % 1 == 0 || a % 6 == 0 || a % 8 == 0)
    cout << "pon"
         << "\n";
  else
    cout << "bon"
         << "\n";
  return 0;
}
