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

int main() {
    char a[100];
    char b[100];
    while (scanf("%s", a) != EOF) {

        scanf("%s", b);
        int la = strlen(a);
        int lb = strlen(b);
        for (int i = la, j = 0; i <= la + lb; i ++, j ++) {
            a[i] = b[j];
        }
        for (int i = 0; i < strlen(a); i ++) {
            printf("%c", a[i]);
        }
    }
    return 0;
}