//ex3_2
//TKC001

#include<stdio.h>

int main(void){
    int N, units;

    scanf("%d", &N);
    //一の位を求める
    units = N % 10;

    switch (units)
    {
    //bonを出力
    case 3:
        printf("bon");
        break;
    
    //ponを出力
    case 0:
    case 1:
    case 6:
    case 8:
        printf("pon");
        break;

    //honを出力
    default:
        printf("hon");
        break;
    }

    return 0;
}