uses crt;
var a:array[1..100]of integer;
i,n,max,t:integer;
begin
clrscr;
readln(n);
for i:=1 to n do readln(a[i]);
max:=a[1];
for i:=1 to n do
if max<a[i] then max:=a[i];
t:=0;
for i:=1 to n do t:=t+a[i];
writeln(max);
writeln(t/n:4:2);
readln;
end.