A solution containing one mole per litre each of Cu(NO3)2,AgNO3,Hg2(NO3)2 is being electrolysed by using inert electrodes.The values of standard potentials are E∘Ag+|Ag=0.80V,E∘Hg2+2|Hg=0.79V,E∘Cu2+|Cu=0.34V,E∘Mg2+|Mg=−2.3V with increasing voltage,the sequence of deposition of metals on the cathode will be