import os print''.join(c*int(c)if c.isdigit()else c for c in os.read(0,1e3))