uses crt;
var a:array[1..100]of integer;
i,n,tb:integer;
begin
clrscr;
write('n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
tb:=0;
for i:=1 to n do
tb:=tb+a[i];
writeln('Trung binh cua day so la: ',tb:4:2);
writeln('Cac so lon hon gia tri trung binh la: ');
for i:=1 to n do
if a[i]>tb then write(a[i]:4);
readln;
end.