#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  string ans = "hon";
  cin >> n;
  if (n % 10 == 3) {
    ans = "bon";
  } else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 8) {
    ans = "pon";
  }
  cout << ans << endl;
}
