while 1:print''.join(c*int(1^c.isdigit()or c)for c in raw_input())