#include <stdio.h>

int main(){
    int n, ult;
    scanf("%d", &n);

    ult = n % 10;

    if(ult == 2 || ult == 4 || ult == 5 || ult == 7 || ult == 9)
        printf("hon");
    else if(ult == 0 || ult == 1 || ult == 6 || ult == 8)
        printf("pon");
    else
        printf("bon");

    return 0;
}
