A shaft is mounted on bearings 400 mm apart and carries at its middle a gear of 200 mm pitch diameter. The gear causes 8000 N radial load and 3000 N tangential load as shown in the figure. The shaft is rotating at 500 rpm. If the allowable shear stress for the shaft is 60 N/mm^2, determine the diameter of the shaft.