Var a, b, z, i: integer; begin readln(a); if (a < 0) then begin z := z + a; i := i+1; end; readln(b); if (b < 0) then begin z := z + b; i := i+1; end; if (i > 0) then writeln(z/i); end.