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