/*  3_2
    Y_Aizaki    */

#include <stdio.h>

int main(void){
    int pencil; // 本数

    scanf("%d", &pencil);

    int first = pencil % 10; // first place
    if(first == 2 || first == 4 || first == 5 || first == 7 || first == 9){
        printf("hon\n");
    }else if(first == 3){
        printf("bon\n");
    }else{
        printf("pon\n");
    }
    
}