#include <stdio.h>
#include <string.h>
#include <stdlib.h>

char* MyStrcat(char dstStr[], char srcStr[]) {
    int len1 = strlen(dstStr);
    int len2 = strlen(srcStr);
    int newlen = len1 + len2;
    char* s = (char*)malloc(sizeof(char) * (newlen));
    for (int i = 0; i < len1; i++) {
        s[i] = dstStr[i];
    }
    for (int i = len1; i < newlen; i++) {
        s[i] = srcStr[i - len1];
    }
    return s;
}

int main() {
    char s1[100], s2[100];
    while (scanf("%s %s", &s1, &s2) != EOF) {
        printf("%s\n", MyStrcat(s1, s2));
    }
    return 0;
}