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