#include <bits/stdc++.h>

using namespace std;

#define endl "\n"
#define F first
#define S second
#define B begin()
#define E end()
#define PB push_back
#define int long long

typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<vi> vii;

const int maxn = 1e5;
const int OO = 1e18;

int32_t main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	
	string s;
	cin >> s;
	if(s[s.size()-1] == '3')
	cout << "bon";
	else if(s[s.size()-1] == '0' or  s[s.size()-1] == '1'or s[s.size()-1] == '6' or s[s.size()-1] == '8')
	cout << "pon";
	else
	cout << "hon";
	
	
	return 0;
}
