Number of diodes required in the ordinary full-wave rectifier is