n, k = map(int, input().split()) t = [] # TODO: # # # # # # #