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