#include <bits/stdc++.h>
int main() {
  int a = 0;
  std::cin >> a;
  char szbuf[1024];
  sprintf(szbuf, "%dA", a);
  int ii = 0;
  for (ii = 0; ii < 100; ii++) {
    if (szbuf[ii + 1] == 0x00) break;
  }
  if (szbuf[ii] == '3') std::cout << "bon";
  if (szbuf[ii] == '0' || szbuf[ii] == '1' || szbuf[ii] == '6' ||
      szbuf[ii] == '8')
    std::cout << "pon";
  else
    std::cout << "hon";
  return 0;
}
