l = str(int(input()))
n = []

for i in range(len(l)):
    n.append((l)[i])
print(n[-1])

if n[-1] == '2' or n[-1] == '4' or  n[-1] == '5' or n[-1] == '7' or  n[-1] == '9':
    print("hon")
elif  n[-1] == '3':
    print("bon")
else:
    print("pon")