Автор - mayvova005p0wgf3
===== PascalABC.NET =====
begin
var n := ReadInteger;
ReadSeqInteger(n)
.Where(p -> p.InRange(100, 300))
.DefaultIfEmpty
.Average
.Println
end.
var a,n,k,i,s: integer;
begin
readln(n);
s:=0;
k:=0;
for i:=1 to n do begin
readln(a);
if (a>=100) and (a<=300) then begin
s:=s+a;
k:=k+1;
end;
end;
write(s/k);
end.