#include<iostream>
uisng namespace std;

int main(){
	int n;
  	cin>>n;
    int t = n%10;
    if(t==0 || t==1||t==6||t=8)
      cout<<"pon"<<endl;
    else if(t==3)
      cout<<"bon"<<endl;
  	else
      cout<<"hon"<<endl;

	return 0;
}