bal=[] for i in range(3): bal.append(input()) if bal.count("RED")>bal.count("BLUE"): print("RED") else: print("BLUE")