#include <cstdio>
#include <string>

using namespace std;

int main(void)
{
	int N,q;
	cin>>N;
	q=N%10;
	if(q==2 || q==4 || q=5 || q==7 || q==9) cout<<"hon"<<endl;
	else if(q==0 || q==1 || q==6 || q==8) cout<<"pon"<<endl
	else cout<<"bon"<<endl;

  return 0;
}