#include <iostream>
using namespace std;
 
int main() {
	int n;
	cin>>n;
	int r=n%10;
	if(r==3){
		cout<<"bon";
	} else if(r==2 || r==4 || r==5 || r==7 || r==9){
		cout<<"hon";
	} else{
		cout<<"pon";
	}
}