#include<stdio.h>
#include<string.h>
int main()
{
    int i,j=0;
    char ara1[1000],ara2[1000],ara3[3000];
    scanf("%s%s",ara1,ara2);

    strcat(ara2,ara1);
    printf("%s\n",ara2);

    return 0;
}
