S = Array.new(3) { gets.chomp } if S.count("RED") >= 2 puts "RED" else puts "BLUE" end