i,l,n;char a[999],b[999];main(j){for(;gets(b);l=printf("%*s%s\n",n+=i-j,"",memcpy(a,b,999)))for(i=0;a[i++]&&l;)for(j=0;b[j++]&&l;)l=strncmp(a+i,b+j,4);}