b=0 c=0 for i in range(3): a=input() if a=="RED": b+=1 elif a=="BLUE": c+=1 if b>c: print("RED") else: print("BLUE")