#include<algorithm>
#include<iostream>
#include<vector>
#include<cstdio>
#include<cstring>
using namespace std;
#define ll long long
//{{{ read()
inline int read(){
	register int x=0,f=1;
	register char ch=getchar();
	while(ch<'0'||ch>'9'){
		if(ch=='-')	f=-1;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9')	x=x*10+(ch^48),ch=getchar();
	return x*f;
}
//}}}
int main(){
	//freopen(".in","r",stdin);
	//freopen(".out","w",stdout);
	int n=read(),f1=0,f2=0,f3=0;
	while(n){
		int y=n%10;
		if(y==0||y==1||y==6||y==8)	f2=1;
		if(y==2||y==4||y==5||y==7||y==9)	f1=1;
		if(y==3)	f3=1;
	}
	if(f3)	puts("bon");
	else	if(f2)	puts("pon");
	else	pon("hon");
	return 0;
}
