if __name__ == "__main__":
    n = int(input())
    tmp = n // 10
    if tmp == 2 or tmp == 4 or tmp == 5 or tmp == 7 or tmp == 9:
        print('hon')
    elif tmp == 3:
        print('bon')
    else:
        print('pon')