color = [] 3.times do color << gets.chomp end if color.count('BLUE') >= 2 puts "BLUE" else puts "RED" end # # a = %w(a a b) # if a.count('a') >= 2 # puts 'ok' # end