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