a,b=raw_input().split() print b*[len(a)