#include <bits/stdc++.h>

using namespace std;

#define ll long long

int main() {

	ios::sync_with_stdio(false);
	cin.tie(0);

	int n;
	cin >> n;
	int t = n % 10;
	if(t == 2 || t == 4 || t == 5 || t == 7 || t == 9) cout << "hon\n";
	else if(t == 3) cout << "bon\n";i
	else cout << "pon\n";

	return 0;
}
