day=int(input()) a=1b=[]c=[]for i in range(day): b.append(a+i)n=list(map(int,input().split()))for x in range(int(len(b))): c.append(b[x]*n[x])print(sum(c))