var s,t,u=readLine u="" s.map{c=>u+=c println(t.replaceAll("(.*)"+u,"$1["+u+"]"))}