#include <stdio.h>

int main(void)
{
    int N;

    scanf("%d", &N);

    int n = N % 10;

    if (n == 3) {
        printf("bon\n");
        return 0;
    } else if (n == 0 || n == 1 || n == 6 || n == 8) {
        printf("pon\n");
        return 0;
    } else {
        printf("hon\n");
        return 0;
    }
    return 0;
}