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