def main(): C = [input() for i in range(3)] red = C.count('RED') blue = C.count('BLUE') if red > blue: print('RED') else: print('BLUE') main()