n, m = map(int, input().split()) X = list(map(int, input().split())) Y = list(map(int, input().split())) Y.sort() for i in range(n): tmp = X[i] for j in range(m): if tmp < Y[j]: print(Y[j] - tmp) break else: print('Infinity')