#include <bits/stdc++.h>
int a, b;
int main() {
  scanf("%d", &a);
  for (int i = 1; a % 10 != 0; i++) {
    a = a - 1;
    b = i;
  }
  if (b == 3)
    printf("bon");
  else if ((b == 0) or (b == 1) or (b == 6) or (b == 8))
    printf("pon");
  else
    printf("hon");
  return 0;
}
