#include <bits/stdc++.h>
int main() {
  char N[1000];
  scanf("%d", &N);
  int l = strlen(N) - 1;
  if (N[l] == 3) {
    printf("bon");
  } else if ((N[l] == 0) || (N[l] == 6) || (N[l] == 1) || (N[l] == 8)) {
    printf("pon");
  } else {
    printf("hon");
  }
  return 0;
}
