The elements undergoing reduction and oxidation during the reaction,(NH4)2Cr2O7→N2+Cr2O3+4H2O are respectively: