Question 6
(HUN) Five students $A$, $B$, $C$, $D$, and $E$ have taken part in a certain competition. Before the competition, two persons $X$ and $Y$ tried to guess the rankings. $X$ thought that the ranking would be $A,B,C,D,E$; and $Y$ thought that the ranking would be $D,A,E,C,B$. At the end, it was revealed that $X$ didn't guess correctly any rankings of the participants, and moreover, didn't guess any of the orderings of pairs of consecutive participants. On the other hand, $Y$ guessed the correct rankings of two participants and the correct ordering of two pairs of consecutive participants. Determine the rankings of the competition.