#include<stdio.h>
int main(void){
    int n;
    scanf("%d", &n);
    switch(n % 10){
        case 0:
            printf("pon");
            break;
        case 1:
            printf("pon");
            break;
        case 2:
            printf("hon");
            break;
        case 3:
            printf("bon");
            break;
        case 4:
            printf("hon");
            break;
        case 5:
            printf("hon");
            break;
        case 6:
            printf("pon");
            break;
        case 7:
            printf("hon");
            break;
        case 8:
            printf("pon");
            break;
        case 9:
            printf("hon");
            break;

    }
}