The marriage problem and the fate of bachelors