m, n = map(int, input().split()) a, b = list(map(int, input().split())), list(map(int, input().split())) c = sum(a) d, e, end = 0, 0, c x, y = 0, n - 1 for i in range(n): for j in range(i, n): d += b[j] if d >= c: print('dc', d, c) f = abs(d - b[j] - c) e = abs(d - c) print(i, j, e, f) minm, m...