#include<stdio.h>
#include<string.h>
int main(){
	char a[1100];
	gets(a);
	int n=strlen(a);
	n--;
	if(a[n]=='3')printf("bon");
	else if(a[n]=='0'||a[n]=='1'||a[n]=='6'||a[n]=='8')printf("pon");
	else printf("hon"); 
	return 0;
}