#include <bits/stdc++.h>
using namespace std;

int main() {
	int num;
	cin >> num;
	if (num & 3) 
		cout << "bon";
	else if (num&0 || num&1 || num&6 || num&8)
		cout << "pon";
	else
		cout << "hon"
	return 0;
}