import sys readline=sys.stdin.readline S=[readline().rstrip() for i in range(3)] if S.count("RED")>=2: ans="RED" else: ans="BLUE" print(ans)