def atcoder():
    i = int(input())
    mod = i % 10
    if mod == 3:
        str="bon"
    elif mod == 0 or i == 1 or i == 6 or i == 8:
        str="pon"
    else:
        str="hon"
    print(str)
atcoder()