red_count = 0 blue_count = 0 for i in range(3): N = input() if N == "RED": red_count += 1 else: blue_count += 1 if red_count > blue_count: print ("RED") else: print ("BLUE")