The standard potentials of $Ag^+/Ag, Hg_2^{2+}/2Hg, Cu^{2+}/Cu$ and $Mg^{2+}/Mg$ electrodes are $0.80,0.79, 0.34$ and $-2.37\, V$, respectively. An aqueous solution which contains one mole per litre of the salts of each of the four metals is electrolyzed. With increasing voltage, the correct sequence of deposition of the metals at the cathode is