#include <bits/stdc++.h>
using namespace std;
const int p = 31;
const int m = 1e9 + 9;
static auto speedup = []() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  return nullptr;
}();
int main() {
  long long n;
  cin >> n;
  long long x = n % 10;
  if (x == 2 || x == 4 || x == 5 || x == 7 || x == 9) cout << "hon";
  if (x == 0 || x == 1 || x == 6 || x == 8)
    cout << "pon";
  else
    cout << "bon";
}
