In the world’s most populous nations, men outnumber women by 70 million. Both countries are trying to come to grips with the policies that created this generation of gender imbalance