import sys
import math
u = int(input())
n=str(u)

if n[-1]=='0':
    print('pon')
if n[-1]=='3':
    print('bon')
elif int(n[-1])<5 and int(n[-1])%2==0:
    print('hon')
elif int(n[-1])>=5 and int(n[-1])%2==1:
    print('hon')
else:
    print('pon')


