while""do a,b=io.read():match"(.*) (.*)"print(a:gsub(".",(b:gsub("."," %%0%0"))):sub(2))end