If KMnO4 is reduced by oxalic acid in an acidic medium, then the oxidation number of Mn changes from: