#include <bits/stdc++.h>
int main() {
  int N;
  scanf("%d", &N);
  N = N % 10;
  if (N == 2, N == 4, N == 5, N == 7, N == 9) {
    printf("hon\n");
  } else if (N == 3) {
    printf("bon\n");
  } else {
    printf("pon\n");
  }
  return 0;
}
