#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  n = n % 10;
  if (n == 1 || n == 0 || n == 8 || n == 6)
    cout << "pon"
         << "\n";
  else if (n == 2 || n == 5 || n == 5 || n == 7 || n == 9)
    cout << "hon"
         << "\n";
  else
    cout << "bon";
  return 0;
}
