c=list(input()) for i in range(len(c)): if ord(c[i+1])<58:print(c[i]*int(c[i+1])) elif 58