if __name__ == "__main__":
    # num = list(map(int, input().split())) 

    N = int(input())

    if(N % 10 == 3):
        print("hon")
    elif(N % 10 == 0 or N % 10 == 1 or N % 10 == 6 or N % 10 == 8):
        print("pon")
    else:
        print("hon")
