Five students—A, B, C, D, and E—are sitting in a row facing North. A is sitting next to B, C is sitting next to D, and D is not sitting next to E. If E is on the far left and C is in the second position from the right, who is sitting in the middle position?