#include<stdio.h>
#include<string.h>
#define maxsize 100

void  MyStrcat(char dstStr[], char srcStr[]) {
    int i, j;
    i = j = 0;
    while (dstStr[i] != '\0')
        i++;
    while (srcStr[j] != '\0')
        dstStr[i++] = srcStr[j++];
    dstStr[i] = '\0';
    printf("%s", dstStr);

}
int main() {
    char str1[maxsize], str2[maxsize];
    while (scanf("%s %s", str1, str2) != EOF)
        MyStrcat(str1, str2);
    return 0;
}