n = input()

if "2" == n[len(n) - 1] or "5" == n[len(n) - 1] or "7" == n[len(n) - 1] or "9" == n[len(n) - 1]:
    print("hon")
elif "0" == n[len(n) - 1] or "1" == n[len(n) - 1] or "6" == n[len(n) - 1] or "8" == n[len(n) - 1]:
    print("pon")
elif "3" == n[len(n) - 1]:
    print("bon")