color = [] 3.times do color << gets.chomp end p color if color.count('BLUE') >= 2 puts "BLUE" else puts "RED" end