compute surviving rate for both genders