A circuit includes a converter for converting an a.c. voltage into a d.c. voltage. The converter has a diode half-bridge, a switch half-bridge, and two d.c. rails. Further, the converter has a second converter for converting the a.c. voltage into a second d.c. voltage.