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