#include <stdio.h>
#include <string.h>
#define MAXS 10
char *str_cat( char *s, char *t )
{
char *p,*q=t;
for(p=s+strlen(s);*p,*q;p++,q++)
{
*p=*q;
}
return s;//返回字符串s的首地址
}
int main()
{
char *p;
char str1[MAXS+MAXS] = {'\0'}, str2[MAXS] = {'\0'};
scanf("%s%s", str1, str2);
p = str_cat(str1, str2);
printf("%s\n%s\n", p, str1);
return 0;
}