#-*-coding:utf-8-*-



def main():

    N = eval(input())

    if len(N)==3:

        if int(N[2])==3:

            print("bon")

        elif int(N[2])==0 or int(N[2])==1 or int(N[2])==6 or int(N[2])==8:

            print("pon")

        else:

            print("hon")

    elif len(N)==2:

        if int(N[1])==3:

            print("bon")

        elif int(N[1])==0 or int(N[1])==1 or int(N[1])==6 or int(N[1])==8:

            print("pon")

        else:

            print("hon")

    else:

        if int(N[0])==3:

            print("bon")

        elif int(N[0])==0 or int(N[0])==1 or int(N[0])==6 or int(N[0])==8:

            print("pon")

        else:

            print("hon")



if __name__=="__main__":

    main()
#-*-coding:utf-8-*-



def main2():

    N = int(eval(input()))

    modN=N%10

    print(("pphbhhphph"[modN]+"on"))



if __name__=="__main__":

    main2()
# -*-coding:utf-8-*-
def main():
    N = eval(input())
    if len(N) == 3:
        if int(N[2]) == 3:
            print("bon")
        elif int(N[2]) == 0 or int(N[2]) == 1 or int(N[2]) == 6 or int(N[2]) == 8:
            print("pon")
        else:
            print("hon")
    elif len(N) == 2:
        if int(N[1]) == 3:
            print("bon")
        elif int(N[1]) == 0 or int(N[1]) == 1 or int(N[1]) == 6 or int(N[1]) == 8:
            print("pon")
        else:
            print("hon")
    else:
        if int(N[0]) == 3:
            print("bon")
        elif int(N[0]) == 0 or int(N[0]) == 1 or int(N[0]) == 6 or int(N[0]) == 8:
            print("pon")
        else:
            print("hon")


if __name__ == "__main__":
    main()

# -*-coding:utf-8-*-
def main2():
    N = int(eval(input()))
    modN = N % 10
    print(("pphbhhphph"[modN] + "on"))


if __name__ == "__main__":
    main2()

-def main(): -    N = eval(input()) -    if len(N) == 3: -        if int(N[2]) == 3: -            print("bon") -        elif int(N[2]) == 0 or int(N[2]) == 1 or int(N[2]) == 6 or int(N[2]) == 8: -            print("pon") -        else: -            print("hon") -    elif len(N) == 2: -        if int(N[1]) == 3: -            print("bon") -        elif int(N[1]) == 0 or int(N[1]) == 1 or int(N[1]) == 6 or int(N[1]) == 8: -            print("pon") -        else: -            print("hon") -    else: -        if int(N[0]) == 3: -            print("bon") -        elif int(N[0]) == 0 or int(N[0]) == 1 or int(N[0]) == 6 or int(N[0]) == 8: -            print("pon") -        else: -            print("hon") +def main2(): +    N = int(eval(input())) +    modN = N % 10 +    print(("pphbhhphph"[modN] + "on")) -    main() +    main2()