attrs = Array.new
attrs[0] = gets.chomp
attrs[1] = gets.chomp
attrs[2] = gets.chomp
red = attrs.grep("RED")
blue = attrs.grep("BLUE")
if red.count>=2 then
    puts("RED")
else puts("BLUE")
end