Y, N = map(int, input().split()) A = list(map(int, input().split())) ans = Y - sum(A) if ans < 0: print("red") else: print(ans)