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