# import numpy as np
# import math

N = int(input())
NN = str(N)
a = NN[-1:]
if a == '3':
    print('bon')
elif a=='0' or a=='1' or a=='6' or a=='8':
    print('pon')
else:
    print('hon')


# A, B = map(int, input().split())
# L = list(map(int, input().split()))




# print(ans)
