#include <bits/stdc++.h>
int main(int argc, char **argv) {
  (void)argc;
  int m = atoi(argv[1]) % 10;
  if (m == 3) {
    printf("bon\n");
    return 0;
  }
  if (m == 0 || m == 1 || m == 6 || m == 8) {
    printf("pon\n");
    return 0;
  }
  printf("hon\n");
  return 0;
}
