The synthesis of the A,B and D,E rings of medicagenic acid.