digitalRead(D);
digitalRead(E);
This doesn't achieve anything. You need to store the results, eg.
a = digitalRead(D);
b = digitalRead(E);
firstInput;
secondInput;
thirdInput;
fourthInput;
fifthInput;
What does that do?