Given the input '5 3 1 4 2', what is the third number in the final output after sorting?

Answer: C. 3
The numbers sorted in ascending order result in '3' being the third number.