#P1250. Special Week With The Derby

Special Week With The Derby

题目描述

Now the derby is coming, to be the champion of Derby, Special week trains herself hard.

Initially, she has nn days to train.

Each day, she will get kk experience.

So, given the schedule of the training, please help her calculate the total experience she will get.

输入格式

The first line contains one positive integer n(1lenle106)n (1\\le n\\le 10^6), the number of days.

Then followed n positive integers k[i](1lek[i]le105)k[i](1\\le k[i]\\le10^5)

输出格式

One positive integer, the answer.

样例

4 
1 2 3 4
10