# a, b = map(int, input().split())
#
# arr = [[i for i in input().split()[:b]] for j in range(a)]
#
# for i in range(b):
#     for f in arr:
#         print(f[i], end=' ')
#     print() 

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