y,n = map(int,input().split()) a = list(map(int,input().split())) a_sum = sum(a) print(y - a_sum) if y >= a_sum else print('red')