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