#include <bits/stdc++.h>
int main() {
  char input[256];
  int n;
  int rem = n % 10;
  fgets(input, 256, stdin);
  sscanf(input, "%d", &n);
  if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    printf("hon \n");
  } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    printf("pon \n");
  } else if (rem == 3) {
    printf("bon \n");
  }
}
