5. Five students $A, B, C, \ldots D, E$ participate in a competition. Someone guessed the result of the competition to be $A B C D E$, but did not guess any of the ranks correctly, nor did they guess any student's rank immediately following another's.

Another person guessed the competition result to be $D A E C B$, and the result was that they guessed two ranks correctly, and also guessed correctly that two students' ranks immediately followed another's. What is the result of the competition? (IMO-5-6)
(Answer: $E D A C B$. )