#include <bits/stdc++.h>
int main(void) {
  int N;
  scanf("%d", &N);
  switch (N % 10) {
    case 2:
      4;
      5;
      7;
      9;
      printf("hon\n");
      break;
    case 0:
      1;
      6;
      8;
      printf("pon\n");
      break;
    case 3:
      printf("bon\n");
    default:
      break;
  }
  return 0;
}
