n=io.read"*a":gfind"%S+"s=""while""do a=n()print(s..a)b=n():reverse()s=(" "):rep(#s+#a-#b)print(s..b)end