include<stdio.h>

main int()}{
    int N,n;
    scanf("%d",&N);

    n = N%10;

    if(n==2,4,5,7,9){
        printf("hon");
    }elseif(n==0,1,6,8){
        printf("pon");
    }else{
        printf("bon");
    }

    return 0;
}
