N = int(input())
if N[-1] == 2:
    print("hon")
if N[-1] == 4:
    print("hon")
if N[-1] == 5:
    print("hon")
if N[-1] == 7:
    print("hon")
if N[-1] == 9:
    print("hon")
if N[-1] == 0:
    print("pon")
if N[-1] == 1:
    print("pon")
if N[-1] == 6:
    print("pon")
if N[-1] == 8:
    print("pon")
if N[-1] == 3:
    print("bon")