var a:array[1..9] of integer;
i,j,c,sum,t:integer;
begin
c:=0;
sum:=0;
for i:=1 to 9 do readln(a[i]);
for i:=1 to 9 do begin
if a[i]>2 then c += 1;
if a[i]<12 then sum += a[i];
end;
for j:=9 downto i do begin
if a[j]>a[i] then begin
t:=a[i];
a[i]:=a[j];
a[j]:=t;
writeln('Количество чисел > 2: ',c);
writeln('Сумма чисел < 12: ',sum);
for i:=1 to 9 do writeln('a[',i,']=',a[i]);
end.
var a:array[1..9] of integer;
i,j,c,sum,t:integer;
begin
c:=0;
sum:=0;
for i:=1 to 9 do readln(a[i]);
for i:=1 to 9 do begin
if a[i]>2 then c += 1;
if a[i]<12 then sum += a[i];
end;
for i:=1 to 9 do begin
for j:=9 downto i do begin
if a[j]>a[i] then begin
t:=a[i];
a[i]:=a[j];
a[j]:=t;
end;
end;
end;
writeln('Количество чисел > 2: ',c);
writeln('Сумма чисел < 12: ',sum);
for i:=1 to 9 do writeln('a[',i,']=',a[i]);
end.