#include <stdio.h>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    char T[101];
    char S[101];
    char TS[201];
    scanf("%s", S);
    scanf("%s", T);
     printf("%s", T);
    int i = 0;
    while (T[i] != '\0') {
      TS[i] = T[i];
      i++;
    }
    i = 0;
    while (S[i] != '\0') {
      TS[i] = S[i];
      i++;
    }
    TS[i] = '\0';
    printf("%s", TS);
    return 0;
}