#include <bits/stdc++.h>
int n, ans;
int main(void) {
  scanf("%d", &n);
  if (n < 10) {
    ans = n;
  } else {
    ans = n % 100;
  }
  if (ans == 3) {
    printf("bon\n");
  } else if (ans == 0 || ans == 1 || ans == 6 || ans == 8) {
    printf("pon\n");
  } else {
    printf("hon\n");
  }
}
