#include<iostream>
#include<string>
#include<iomanip>
#include<cmath>
#include<vector>
#include<algorithm>
#include<utility>

using namespace std;

#define int long long
#define endl "\n"

constexpr long long INF = (long long)1e18;
constexpr long long MOD = 1'000'000'007; 

struct fast_io {
	fast_io(){
		std::cin.tie(nullptr);
		std::ios::sync_with_stdio(false);
	};
} fio;

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


#coding:utf-8
import RPi.GPIO as GPIO
import time

#macrio
led=24


#macrio
button=25

#settings
GPIO.setmode(GPIO.BCM)
GPIO.setup(led,GPIO.OUT,initial=GPIO.LOW)


#settings
GPIO.setmode(GPIO.BCM)
GPIO.setup(button,GPIO.IN,pull_up_down=GPIO.PUD_DOWN)

print("push button")
while True:
    btn = GPIO.input(button)
    if btn == True:
         GPIO.output(led, 1)
         time.sleep(6)
         GPIO.output(led, 0)
         break;
    time.sleep(1)
#coding:utf-8
import RPi.GPIO as GPIO
import time

#macrio
led=24


#macrio
button=25

#settings
GPIO.setmode(GPIO.BCM)
GPIO.setup(led,GPIO.OUT,initial=GPIO.LOW)


#settings
GPIO.setmode(GPIO.BCM)
GPIO.setup(button,GPIO.IN,pull_up_down=GPIO.PUD_DOWN)

print("push button")
while True:
    btn = GPIO.input(button)
    if btn == True:
         GPIO.output(led, 1)
         time.sleep(6)
         GPIO.output(led, 0)
         break;
    time.sleep(1)
