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