#include<stdio.h>
int main(){
    int N;
    scanf("%d",&N);
    switch (N%10)
    {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
        puts("hon");
        break;
    case 3:
        puts("bon");
        break;
    default:
    puts("pon");
        break;
    }
}