/**

author:	©LoneWolfDON
Git: MahinHossainMunna

**/
/*

*/

#include <stdio.h>
#include <string.h>

int main()
{
    int N;

    scanf("%d", &N);

    int temp = N % 10;

    if(temp == 2 || temp == 4 || temp == 5 || temp == 7 || temp == 9 )
        printf("hon\n");

    else if(temp == 0 || temp == 1 || temp == 6 || temp == 8)
        printf("pon\n");

    else
        printf("bon\n");

    return 0;
}
