ll N,A[2d5],S;{rd(N,A(N));S+=A[0..N]*-~(0..)*(N-0..);wt(S);}