#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  int n;
  cin >> n;
  set<int> s{0, 1, 6, 8};
  cout << (n == 3 ? "bon" : (s.count(n) ? "pon" : "hon")) << '\n';
  return 0;
}
