program z1;
const
n=30;
var i,s: integer;
a:array [1..n] of integer;
begin
randomize;
for i:=1 to n do
a[i]:= random(100)+50;
writeln ('a[',i,']=',a[i]);
end;
s:=0;
for i:=1 to 27 do
s:=s+a[i+2];
writeln (s);
end.
program z1;
const
n=30;
var i,s: integer;
a:array [1..n] of integer;
begin
randomize;
for i:=1 to n do
begin
a[i]:= random(100)+50;
writeln ('a[',i,']=',a[i]);
end;
s:=0;
for i:=1 to 27 do
s:=s+a[i+2];
writeln (s);
end.