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

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