/*  ex3_2
    kosaq       */

#include <stdio.h>

int main(void){
    int n_pen;    //n_pen means the number of pencils(N)
    int first_digit;    // the first digit of N

    scanf("%d", &n_pen);    //output N
    first_digit = n_pen % 10;    //this formula represents the first digit of N


    if(first_digit == 2 || first_digit == 4 || first_digit == 5 || first_digit == 7 || first_digit == 9){    //if the first digit is 2 or 4 or 5 or 7 or 9
        printf("hon\n");    //output hon
    }
    else if(first_digit == 0 || first_digit == 1 || first_digit == 6 || first_digit == 8){    //if the first digit is 0 or 1 or 6 or 8
        printf("pon\n");    //output pon
    }
    else {    //the first digit is 3
        printf("bon\n");    //output bon
    }

    return 0;
}