balloon = [input() for _ in range(3)]
if balloon.count('RED') < balloon.count('BLUE'):
    print('BLUE')
else:
    print('RED')