#include <stdio.h>

int main(void){
    int N;
    scanf("%d", &N);
    int n = N % 10;
    char *ans;
    if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9){
        ans = "hon";
    }else if(n == 0 || n == 1 || n == 6 || n == 8){
        ans = "pon";
    }else{ ans = "bon"; }
    printf("%s\n", ans);
    return 0;
}