#include <bits/stdc++.h>
int main(int N) {
  int N_1 = 0;
  N_1 = N % 10;
  if (N_1 == 2 or N_1 == 4 or N_1 == 5 or N_1 == 7 or N_1 == 9) {
    printf("hon");
  } else if (N_1 == 0 or N_1 == 1 or N_1 == 6 or N_1 == 8) {
    printf("pon");
  } else {
    printf("bon");
  }
  return 0;
}
