#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void) {
    
    char buf[16];
    scanf("%16s",buf);
    
    if(buf[strlen(buf)-1] == '2' || buf[strlen(buf)-1] == '4' || buf[strlen(buf)-1] == '5' || buf[strlen(buf)-1] == '7' || buf[strlen(buf)-1] == '9')
        printf("hon\n");
    else if(buf[strlen(buf)-1] == '0' || buf[strlen(buf)-1] == '1' || buf[strlen(buf)-1] == '6' || buf[strlen(buf)-1] == '8')
        printf("pon\n");
    else if(buf[strlen(buf)-1] == '3')
        printf("bon\n");

    return 0;
}