import sys def solve(): it = iter(sys.stdin.read().split()) y = int(next(it)) n = int(next(it)) total = 0 for _ in range(n): total += int(next(it)) if total > y: print("red") else: print(y - total) if __name__ == '__main__': solve()