print((io.read'*a':gsub("%d",function(x)return x:rep(x)end)))