l;main(p,s,t){for(gets(s),gets(t);p=memmem(t,99,s,++l);)printf("%.*s[%.*s]%s\n",p-t,t,l,p,p+l);}