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