def main():
    n = int(input())
    one = n%10
    if one in [2, 4, 5, 7, 9]:
        print("hon")
    elif one == 2:
        print("bon")
    else:
        print("pon")

if __name__ == "__main__":
    main()