Var temp, sum, n:integer; begin sum:=0; n:=0; read(temp); while(temp>0) do begin inc(sum,temp); inc(n); read(temp); end; writeln; writeln(sum/n) end.