#include <bits/stdc++.h>
using namespace std;
#define IOS ios_base::sync_with_stdio(0);cin.tie();cout.tie();
#define ff first
#define ss second
#define pb push_back
typedef long long ll;
typedef unsigned long long ull;
const ll mod = 1e9 + 7;
const ll inf = 9223372036854775807;
const ll mininf = -9223372036854775807;
const ll nax = 0;

int main(){
	IOS
	int n;
	cin >> n;
	int huruf=n%10;
	if(huruf==3){
		cout << "bon" << '\n';
	}
	else if(huruf== 0 or huruf== 1 or huruf== 6 or huruf==8){
		cout << "pon" << '\n';
	}
	else{
		cout << "hon" << '\n';
  	}
}
