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