#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	int z=n%10;
	if(z==2||z==4||z==5||z==7||z==9)
	cout<<"hon";
	else if(z==0||z==1||z==6||z==8)
	cout<<"pon";
	else
	cout<<"bon";
}