m, n = map(int, input().split()) box = [[int(x) for x in input().split()] for _ in range(n)]
입력 6 4 0 -1 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1