Var i,n,s:integer;
a:array[1..200] of integer;
Begin
Write('N = ');readln(n);
For i:=1 to n do
Begin
Write('Nhap so thu ',i);readln(a[i]);
s:=s+a[i];
End;
Writeln('Cac so vua nhap la ');
For i:=1 to n do
Write(a[i]:7);
Writeln;
Write('Tong la ',s);
Readln;
End.