
N = input("How many books?\n")
N = int(N)
N1= N % 10
num = {2:"hon",4:"hon",5:"hon",7:"hon",9:"hon",\
        0:"pon",1:"pon",6:"pon",8:"pon",\
        3:"bon"}
if N in num:
    val = num[N]
    print(val)
else:
    print("エラー")
