Program HOC24;
var a: array[1..32000] of integer;
i,n: integer;
t: longint;
begin
write('Nhap N: '); readln(n);
t:=0;
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
t:=t+a[i];
end;
write('Tong cac phan tu gia tri trong mang la: ',t);
readln
end.