while 1:s,t=raw_input().split();print" ".join(c+d for c in s for d in t)