e = (a + b + c + d)/2; //e = (a + b)/2 + (c + d)/2