#include <stdio.h>
int main(void)
{
int n, digit;
scanf("%d", &n);
digit = n;
while(n >= 10) {
  n %= 10;
  digit = n;
}
if (digit == 2 || digit == 4 || digit == 5 || digit == 7 || digit == 9 )
    printf("hon");
else if (digit == 0 || digit == 1 || digit == 6 || digit == 8) 
    printf("pon");
else 
    printf("bon");
return 0;
}