y, n = map(int, input().split()) a = list(map(int, input().split())) t = sum(a) if y - t < 0: print("red") else: print(y - t)