老年蒟蒻叩首
s=input() for i in range(0,len(s)): if (s[i]>'1' and s[i]<='9'): print((int(s[i])-1)*s[i-1], end="") else: print(s[i], end="")