#include <stdio.h>
int main(void){

    int n;
    scanf("%1d",&n);
    
    switch(n){
        case 0:printf("pon");return 0;
        case 1:printf("pon");return 0;
        case 2:printf("hon");return 0;
        case 3:printf("bon");return 0;
        case 4:printf("hon");return 0;
        case 5:printf("hon");return 0;
        case 6:printf("pon");return 0;
        case 7:printf("hon");return 0;
        case 8:printf("pon");return 0;
        case 9:printf("hon");return 0;
    }
}
