red, blue = 0, 0 for i=1,3 do n = io.read() if n == "RED" then red = red + 1 elseif n == "BLUE" then blue = blue + 1 end end if red > blue then print("RED") else print("BLUE") end