Program BTT;
Uses crt;
Var A: array[1..10] of longint;
n,i,da,dd,s: longint;
Begin
Clrscr;
Write('Nhap n: '); Readln(n);
For i:=1 to n do
Begin
Write('A[',i,'] = ');
Readln(A[i]);
End;
s:=0;
Write('Cac phan tu cua mang la: ');
For i:=1 to n do
Begin
Write(A[i],' ');
s:=s+A[i];
If A[i]>=0 then inc(dd);
If A[i]<0 then inc(da);
End;
Writeln;
Writeln('Tong cac phan tu cua mang: ',s);
Write('Co ',dd,' so duong va ',da,' so am');
Readln
End.