#include "stdc++.h"
using namespace std;

void ans(int x) {
	if (x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
		cout << "hon" << endl;
	}
	else if (x == 3) {
		cout << "bon" << endl;
	}
	else {
		cout << "pon" << endl;
	}
}

int main() {
	int n;
	cin >> n;

	if (n < 10) {
		ans(n);
	}
	else if (n >= 10 && n < 100) {
		n = n % 10;
		ans(n);
	}
	else {
		n = n % 100;
		n = n % 10;
		ans(n);
	}

	return 0;
}