#include <iostream>
#include <vector>
using namespace std;
int main()
{
	int N[4];
	cin >> N;
	
	
	
	if(N[2] == 2 || N[2] == 4 || N[2] == 5 || N[2] == 7 || N[2] == 9){
		cout << "hon" << endl;
	}
	
	else if(N[2] == 0 || N[2] == 1 || N[2] == 6 || N[2] == 8){
		cout << "pon" << endl;
	}
	
	else if(N[2] == 3){
		cout << "bon" << endl;
	}
}
