#include<stdio.h>
int strcat(char c[100],char d[100])
{
int i,j;
puts(c);
puts(d);
for(i=0;c[i]!='\0';i++);
for(j=0;d[j]!='\0';j++)
{
c[i++]=d[j];
}
c[i]='\0';
puts(c);
return c;
}
int main()
{
char a[100];
char b[100];
gets(a);
gets(b);
strcat(a,b);
return 0;
}