r=(R=readline)(l=R(t=''));for(i in l)print(r.replace(t+=l[i],'[$&]'))