# a = [input().lower() for _ in range(int(input()))]
#
# store = []
#
# for i in range(int(input())):
#     store += input().lower().split(' ')
#
# for i in a:
#     while i in store:
#         store.remove(i)
#
# for i in set(store):
#     print(i)
#
# print(store) 

# if __name__ == '__main__':
#     main()
