#include<bits/stdc++.h>
using namespace std;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
    int n;
    cin>>n;
    r=n%10;
  	if(r==2||r==4||r==5||r==7||r==9)
      cout<<"hon"<<"\n";
  	else if(r==0||r==1||r==6||r==8)
      cout<<"pon"<<"\n";
  	else
      cout<<"bon"<<"\n";
  	return 0;
}
	  