N = input() num = 0 sum = 0 while N > 0 : num = input() sum = sum + num N = N - 1 print (sum)