#include<stdio.h>
int main()
{
    int n,r,temp;
    scanf("%d",&n);
    temp=n;
    r=temp%10;
    if(r==3)
    printf("bon");
    else if(r==0||r==1||r==6||r==8)
    printf("pon");
    else printf("hon");
    return 0;
    
    
}