#include <bits/stdc++.h>
using namespace std;
constexpr auto INFI = 2147483647;
const long long INFL = 9223372036854775807;
int main() {
  int n;
  cin >> n;
  n = n % 10;
  string ans;
  if (n == 3) {
    ans = "bon";
  } else if (n == 0 || n == 1 || n == 6 || n == 8) {
    ans = "pon";
  } else {
    ans = "hon";
  }
  cout << ans << endl;
  return 0;
}
