var sum,n,temp:integer;
begin
sum:=0;
n:=0;
readln(temp);
while(temp<>0) do begin
inc(n);
sum:=sum+temp;
end;
writeln('Sum = ',sum,'; Ave = ',sum/n)
end.
var sum,n,temp:integer;
begin
sum:=0;
n:=0;
readln(temp);
while(temp<>0) do begin
inc(n);
sum:=sum+temp;
readln(temp);
end;
writeln('Sum = ',sum,'; Ave = ',sum/n)
end.