n, m = list(map(int, input().split())) arr = [] for _ in range(n): l = list(map(int, input().split()))[:m] arr.append(l)