x = input() y = input() z = input() a = x + y + z if a.count('RED') >= 2: print('RED') else: print('BLUE')