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