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