s=input() t=input() c=num="" ss=s for i in range(len(t)-1,-1,-1): __________ if "a"<=ch<="z" or "A"<=ch<="Z": __________ elif "0"<=ch<="9": num=ch+num else: n=int(num) if ch=="-": s=__________ else: s=s[:n-1]+s[n-1+len(c):] ss=ss+"->"+s c="" __________ print(ss)