program Bevarde10; var i,x,y,z,q : integer; begin z:=0; q:=0; for i:= 1 to 6 do begin Read(x); if x < 50 then z:=x+z else q:=q+1; end; Writeln(z,' ',q); end.