import sys



readline = sys.stdin.readline

MOD = 10 ** 9 + 7

INF = float('INF')

sys.setrecursionlimit(10 ** 5)





def main():

    n = eval(input())

    c = n[-1]



    if c in ["2", "4", "5", "7", "9"]:

        print("hon")

    elif c in ["0", "1", "6", "8"]:

        print("pon")

    else:

        print("bon")





if __name__ == '__main__':

    main()

n = eval(input())

c = n[-1]



if c in ["3"]:

  print("bon")

elif c in ["0", "1", "6", "8"]:

  print("pon")

else:

  print("hon")
import sys

readline = sys.stdin.readline
MOD = 10**9 + 7
INF = float("INF")
sys.setrecursionlimit(10**5)


def main():
    n = eval(input())
    c = n[-1]
    if c in ["2", "4", "5", "7", "9"]:
        print("hon")
    elif c in ["0", "1", "6", "8"]:
        print("pon")
    else:
        print("bon")


if __name__ == "__main__":
    main()

n = eval(input())
c = n[-1]
if c in ["3"]:
    print("bon")
elif c in ["0", "1", "6", "8"]:
    print("pon")
else:
    print("hon")

-import sys - -readline = sys.stdin.readline -MOD = 10**9 + 7 -INF = float("INF") -sys.setrecursionlimit(10**5) - - -def main(): -    n = eval(input()) -    c = n[-1] -    if c in ["2", "4", "5", "7", "9"]: -        print("hon") -    elif c in ["0", "1", "6", "8"]: -        print("pon") -    else: -        print("bon") - - -if __name__ == "__main__": -    main() +n = eval(input()) +c = n[-1] +if c in ["3"]: +    print("bon") +elif c in ["0", "1", "6", "8"]: +    print("pon") +else: +    print("hon")