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