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



int main(void){
    // Your code here!
    int n;
    scanf("%d",&n);
    while(n>=10){
        n=n%10;
        
    }
    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;
    }
}