/* ex3-2
   Sagzar1993  */


#include <stdio.h>

int main(void) {
    //鉛筆の本数と、その数の一の位を定義
    int pencilNum, onesplace;

    //入力を受け取る
    scanf("%d", &pencilNum);

    //一の位は10で割った余りに等しい
    onesplace = pencilNum % 10;

    //一の位に応じた読み方を表示
    switch (onesplace)
    {
    case 0:
        printf("pon\n");
        break;
    case 1:
        printf("pon\n");
        break;
    case 2:
        printf("hon\n");
        break;
    case 3:
        printf("bon\n");
        break;
    case 4:
        printf("hon\n");
        break;
    case 5:
        printf("hon\n");
        break;
    case 6:
        printf("pon\n");
        break;
    case 7:
        printf("hon\n");
        break;
    case 8:
        printf("pon\n");
        break;
    case 9:
        printf("hon\n");
        break;
    }

    return 0;
}