/* ex3_2
   KKOO  */

#include <stdio.h>

int main(void) {
    int pencil,one_space;
    //鉛筆の本数の入力
    scanf("%d",&pencil);

    //一の位の導出
    one_space = pencil % 10;

    //助数詞の読み分け
    if(one_space==2 || one_space==4 || one_space==5 || one_space==7 || one_space==9){
        printf("hon\n");
    }

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

    else{
        printf("bon\n");
    }

    return 0;
}
