r, b = 0, 0 for i in range(3): s = input() if s == 'RED': r += 1 elif s == 'BLUE': b += 1 if r > b: print('RED') elif r < b: print('BLUE')