#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
  cin >> N;
  int t = N % 10;
  if (t == 3)
    cout << "bon";
  else if (t == 0 || t == 1 || t == 6 || t == 8)
    cout << "pon";
  else
    cout << "hon";
  return 0;
}
