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