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