r=string.rep while''do x=io.read()print(r('[',x)..'0'..r(']',x))end