puts$<.map{|$_|f,$_="{}[]()<>"[$&]?["EOL",$`+$']:$1+$'while/.([]}>)])/;/^ /?:yes:"failed at: "+f}