dict = {}
aux = []

# def solve(input_line):
#     dict[input_line.lower()]= input_line
#     aux.append(input_line.lower())
#     aux.sort()
#     print(aux)
    # print(dict[aux[-1]])
    

# while True:
#     try: input_line = input()
#     except EOFError: break
#     solve(input_line)
