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

#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
typedef long long ll;
//typedef long long int;
const ll M = 1000000007;
ll A, B, C, D, G, H, N, L, K, P, Q, R, W, X, Y, Z;
string S, T;

signed main(){
	std::cin >> N;
	if(N%10==3){std::cout << "bon" << std::endl;
	else if(N%10==0||N%10==1||N%10==6||N%10==8){std::cout << "pon" << std::endl;
	else {std::cout << "hon" << std::endl;
}