S = [] for x in range(3): S.append(input()) count = S.count('RED') if count < 2: print('BLUE') else: print('RED')