#include <iostream>
#include <vector>
using namespace std;

int main() {
	
	int a;

	cin >> a;

	if (a % 10 == 3) {
		cout << "bon" << endl;
	}

	elseif ((a % 10 == 0) || (a % 10 == 1) || (a % 10 == 6) || (a % 10 == 8)) {
		cout << "pon" << endl;
	}

	else {
		cout << "hon" << endl;
	}

	return 0;
}