# -*- coding: utf-8 -*-


def check(a, A):


def string_search(T, P):
    for i in xrange(len(T) - len(P) + 1):
        if T[i] == P[j]:


if __name__ == '__main__':
    T = raw_input()
    P = raw_input()

    result = string_search(T, P)

    print T + P
