var n, sum, x, i: integer; begin sum := 0; readln(n); for i := 1 to n do begin readln(x); sum := sum + x; end; writeln(sum); end.