#include<stdio.h>
int main(void){
    int f, n;
    scanf("%d",&n);
    f = n % 10;
    if(f=3){
        printf("bon");
    }else if(f=0){
        printf("pon");
    }else if(f=1){
        printf("pon");
    }else if(f=6){
        printf("pon");
    }else if(f=8){
        printf("pon");
    }else{
        printf("hon");
    }
    return 0;
}
