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