#include <stdio.h>
#include <stdlib.h>

int main(){
    int x;
    scanf("%d", &x);
    x = x%10;
    if(x == 2 || x == 4 || x == 5 ||x == 7 || x == 9){
        printf("hon");
    }
    if(x == 0 || x == 1 || x == 6 ||x == 8){
        printf("pon");
    }
    if(x == 3)
        printf("bon");
    return 0;
}