#include <bits/stdc++.h>
using namespace std;
const int maxn = 10;
char s[maxn];
int main() {
  scanf("%s", s);
  int len = strlen(s);
  int t = s[len - 1] - '0';
  if (t == 2 || t == 5 || t == 4 || t == 7 || t == 9)
    printf("hon\n");
  else if (t == 0 || t == 1 || t == 6 || t == 8)
    printf("pon\n");
  else if (t == 3)
    printf("bon\n");
  return 0;
}
