//PascalABC.NET 3.1 сборка 1219
begin
var a := ArrRandomInteger(ReadInteger('n ='), 760, 780);
a.Println;
Writeln('Max = ', a.Max, ' №', a.IndexMax + 1);
Writeln('Min = ', a.Min, ' №', a.IndexMin + 1);
Writeln('Avg = ', a.Average);
var d := ReadInteger('d =');
Writeln('Count(x > ', d, ') = ', a.Where(x -> x > d).Count);
a.Sort;
a.Println;
end.