Each odd digit in the number 5263187 is substituted bythe next higher digit and each even digit is substituted by the previous lower digit and the digits so obtained are rearranged in ascending order, which of the following will be the, third digit from the left end after the rearrangement ?