#include <stdio.h>

int main(){
    int N;
    int tmp;

    scanf("%d",&N);
    tmp=N%10;
    if (tmp==2 || tmp==4 || tmp==5 || tmp==7 || tmp==9){
        printf("hon\n");
    }

    if (tmp==0 || tmp==1 || tmp==6 || tmp==8){
        printf("pon\n");
    }

    if (tmp==3){
        printf("bon\n");
    }

    return 0;

}
