m, n = map(int, input().split()) val1 = [] val2 = [] cnt = 0 for i in range(m): nums1 = list(map(int, input().split())) val1.append(nums1) for i in range(m):...