s = ["" for _ in range(3)] s[0]=input() s[1]=input() s[2]=input() count = 0 for i in range(3): if s[i] == "RED": count += 1 if count <= 1: print("BLUE") else: print("RED")