S1 = input() S2 = input() S3 = input() answer = { 'RED': 0, 'BLUE': 0 } for S in [S1, S2, S3]: if S == 'RED': answer['RED'] += 1 else: answer['BLUE'] += 1 if answer['RED'] >= answer['BLUE']: print('RED') else: print('BLUE')