#include <bits/stdc++.h>
int main(void) {
  int N;
  scanf("%d\n", &N);
  int mod = N % 10;
  if (mod == 3) {
    printf("bon\n");
  }
  if (mod == 0, 1, 6, 8) {
    printf("pon\n");
  } else {
    printf("hon");
  }
  return 0;
}
