function F = KB40F(x)
%

F(1) = -0.88069+(1-x(5))+(1-x(2))+x(4)-(1-x(5))*(1-x(2))-(1-x(5))*x(4)-(1-x(2))*x(4)+(1-x(5))*(1-x(2))*x(4);
F(2) = -0.18232+(1-x(1))+x(4)-(1-x(1))*x(4);
F(3) = -0.9606+(1-x(2))+x(3)+x(4)+x(5)-(1-x(2))*x(3)-(1-x(2))*x(4)-(1-x(2))*x(5)-x(3)*x(4)-x(3)*x(5)-x(4)*x(5)+(1-x(2))*x(3)*x(4)+(1-x(2))*x(3)*x(5)+(1-x(2))*x(4)*x(5)+x(3)*x(4)*x(5)-(1-x(2))*x(3)*x(4)*x(5);
F(4) = -0.82652+(1-x(1))+x(3)+x(5)-(1-x(1))*x(3)-(1-x(1))*x(5)-x(3)*x(5)+(1-x(1))*x(3)*x(5);
F(5) = -0.6176+x(4)+x(5)-x(4)*x(5);
F(6) = -0.98976+x(1)+x(2)+x(3)+x(5)-x(1)*x(2)-x(1)*x(3)-x(1)*x(5)-x(2)*x(3)-x(2)*x(5)-x(3)*x(5)+x(1)*x(2)*x(3)+x(1)*x(2)*x(5)+x(1)*x(3)*x(5)+x(2)*x(3)*x(5)-x(1)*x(2)*x(3)*x(5);
F(7) = -0.99136+(1-x(3))+(1-x(2))+x(1)+x(4)-(1-x(3))*(1-x(2))-(1-x(3))*x(1)-(1-x(3))*x(4)-(1-x(2))*x(1)-(1-x(2))*x(4)-x(1)*x(4)+(1-x(3))*(1-x(2))*x(1)+(1-x(3))*(1-x(2))*x(4)+(1-x(3))*x(1)*x(4)+(1-x(2))*x(1)*x(4)-(1-x(3))*(1-x(2))*x(1)*x(4);
F(8) = -0.99949+(1-x(4))+(1-x(3))+(1-x(2))+x(1)+x(5)-(1-x(4))*(1-x(3))-(1-x(4))*(1-x(2))-(1-x(4))*x(1)-(1-x(4))*x(5)-(1-x(3))*(1-x(2))-(1-x(3))*x(1)-(1-x(3))*x(5)-(1-x(2))*x(1)-(1-x(2))*x(5)-x(1)*x(5)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