#include<stdio.h>

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

    n = N%10;

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

    return 0;
}