def scan; gets.split.map(&:to_i);end def ok(e) p e;exit end n,k = scan s = gets.chomp!.chars.map!(&:to_i) i = 0 r = 0 b = 0 s.each{|e| if 0