S = [input() for i in range(3)] if S.count('RED') > 1: print('RED') else: print('BLUE')