#include <bits/stdc++.h>
int main(void) {
  char n[3];
  scanf("%s", &n);
  if (n[2] = '3') {
    printf("bon");
  } else if ((n[2] = '0') || (n[2] = '1') || (n[2] = '6') || (n[2] = '8')) {
    printf("pon");
  } else if ((n[2] = '2') || (n[2] = '4') || (n[2] = '5') || (n[2] = '7') ||
             (n[2] = '9')) {
    printf("hon");
  }
  return 0;
}
