#include<stdio.h>
int main()
{
    int N;
    scanf("%d",&N);
    int rem=N%10;
    if(rem == 2 || rem == 4 || rem == 5 || rem == 7 ||rem == 9)
        printf("hon\n");
    else if(rem == 0 || rem == 1 || rem == 6 || rem == 8)
        printf("pon\n");
    else if(rem == 3)
        printf("bon\n");
    return 0;
}
