Five friends A, B, C, D, and E are sitting in a row facing North. E is at the left end of the row. D is in the second position from the right. A is sitting next to E. A is sitting next to B. C is sitting next to D. C is not sitting next to E. Who is sitting in the middle position?