Const
n = 10;
var
a: array[1..n] of integer;
j, s: integer;
begin
s := 0;
for j := 1 to n do
begin
read(a[j]);
if a[j] > 5 then inc(s, a[j]);
end;
writeln(s);
readln;
<span>end.</span>
Sum := 0;
z := 0;
for i := 1 to 4 do
for j := 1 to 2 do
if A[i,j] > 0 then
begin
sum := sum + A[i,j]
inc(z)
end;
SrArif := sum/z;