uses crt;
const fi='baitap.txt'
var f1:text;
a:array[1..100]of integer;
n,i:integer;
begin
clrscr;
assign(f1,fi); rewrite(f1);
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
writeln(f1,n);
for i:=1 to n do
write(f1,a[i]:4);
close(f1);
readln;
end.