var a,s,i: integer;
begin
s:=0;
for i:=1 to 10 do
a:=random(20)+1;
writeln(a);
s:=s+a;
end;
writeln(s/10);
end.
var a,s,i: integer;
begin
s:=0;
for i:=1 to 10 do
begin
a:=random(20)+1;
writeln(a);
s:=s+a;
end;
writeln(s/10);
end.