while 1:s,t=raw_input().split();print" ".join(c+d for c in s for d in t)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page