function F = KBg(x)
%

F(1) = -0.9 + (1-x(28)) + (1-x(1)) + x(32) - x(56)*x(32) - x(57)*(1-x(1)) - x(57)*x(32) + x(57)*x(56)*x(32);
F(2) = -0.9 + (1-x(28)) + (1-x(2)) + x(35) - x(58)*x(35) - x(59)*(1-x(2)) - x(59)*x(35) + x(59)*x(58)*x(35);
F(3) = -0.9 + (1-x(27)) + (1-x(31)) + x(56) - x(60)*x(56) - x(61)*(1-x(31)) - x(61)*x(56) + x(61)*x(60)*x(56);
F(4) = -0.9 + (1-x(29)) + (1-x(1)) + x(33) - x(62)*x(33) - x(63)*(1-x(1)) - x(63)*x(33) + x(63)*x(62)*x(33);
F(5) = -0.9 + (1-x(29)) + (1-x(2)) + x(36) - x(64)*x(36) - x(65)*(1-x(2)) - x(65)*x(36) + x(65)*x(64)*x(36);
F(6) = -0.9 + (1-x(30)) + (1-x(2)) + x(37) - x(66)*x(37) - x(67)*(1-x(2)) - x(67)*x(37) + x(67)*x(66)*x(37);
F(7) = -0.9 + (1-x(28)) + (1-x(3)) + x(38) - x(68)*x(38) - x(69)*(1-x(3)) - x(69)*x(38) + x(69)*x(68)*x(38);
F(8) = -0.9 + (1-x(28)) + (1-x(4)) + x(38) - x(70)*x(38) - x(71)*(1-x(4)) - x(71)*x(38) + x(71)*x(70)*x(38);
F(9) = -0.9 + (1-x(28)) + (1-x(5)) + x(38) - x(72)*x(38) - x(73)*(1-x(5)) - x(73)*x(38) + x(73)*x(72)*x(38);
F(10) = -0.9 + (1-x(28)) + (1-x(6)) + x(38) - x(74)*x(38) - x(75)*(1-x(6)) - x(75)*x(38) + x(75)*x(74)*x(38);
F(11) = -0.9 + (1-x(29)) + (1-x(3)) + x(39) - x(76)*x(39) - x(77)*(1-x(3)) - x(77)*x(39) + x(77)*x(76)*x(39);
F(12) = -0.9 + (1-x(29)) + (1-x(4)) + x(39) - x(78)*x(39) - x(79)*(1-x(4)) - x(79)*x(39) + x(79)*x(78)*x(39);
F(13) = -0.9 + (1-x(29)) + (1-x(5)) + x(39) - x(80)*x(39) - x(81)*(1-x(5)) - x(81)*x(39) + x(81)*x(80)*x(39);
F(14) = -0.9 + (1-x(29)) + (1-x(6)) + x(39) - x(82)*x(39) - x(83)*(1-x(6)) - x(83)*x(39) + x(83)*x(82)*x(39);
F(15) = -0.9 + (1-x(30)) + (1-x(3)) + x(40) - x(84)*x(40) - x(85)*(1-x(3)) - x(85)*x(40) + x(85)*x(84)*x(40);
F(16) = -0.9 + (1-x(30)) + (1-x(4)) + x(40) - x(86)*x(40) - x(87)*(1-x(4)) - x(87)*x(40) + x(87)*x(86)*x(40);
F(17) = -0.9 + (1-x(30)) + (1-x(5)) + x(40) - x(88)*x(40) - x(89)*(1-x(5)) - x(89)*x(40) + x(89)*x(88)*x(40);
F(18) = -0.9 + (1-x(30)) + (1-x(6)) + x(40) - x(90)*x(40) - x(91)*(1-x(6)) - x(91)*x(40) + x(91)*x(90)*x(40);
F(19) = -0.9 + (1-x(28)) + (1-x(7)) + x(41) - x(92)*x(41) - x(93)*(1-x(7)) - x(93)*x(41) + x(93)*x(92)*x(41);
F(20) = -0.9 + (1-x(28)) + (1-x(8)) + x(41) - x(94)*x(41) - x(95)*(1-x(8)) - x(95)*x(41) + x(95)*x(94)*x(41);
F(21) = -0.9 + (1-x(28)) + (1-x(9)) + x(41) - x(96)*x(41) - x(97)*(1-x(9)) - x(97)*x(41) + x(97)*x(96)*x(41);
F(22) = -0.9 + (1-x(28)) + (1-x(10)) + x(41) - x(98)*x(41) - x(99)*(1-x(10)) - x(99)*x(41) + x(99)*x(98)*x(41);
F(23) = -0.9 + (1-x(29)) + (1-x(7)) + x(42) - x(100)*x(42) - x(101)*(1-x(7)) - x(101)*x(42) + x(101)*x(100)*x(42);
F(24) = -0.9 + (1-x(29)) + (1-x(8)) + x(42) - x(102)*x(42) - x(103)*(1-x(8)) - x(103)*x(42) + x(103)*x(102)*x(42);
F(25) = -0.9 + (1-x(29)) + (1-x(9)) + x(42) - x(104)*x(42) - x(105)*(1-x(9)) - x(105)*x(42) + x(105)*x(104)*x(42);
F(26) = -0.9 + (1-x(29)) + (1-x(10)) + x(42) - x(106)*x(42) - x(107)*(1-x(10)) - x(107)*x(42) + x(107)*x(106)*x(42);
F(27) = -0.9 + (1-x(30)) + (1-x(7)) + x(43) - x(108)*x(43) - x(109)*(1-x(7)) - x(109)*x(43) + x(109)*x(108)*x(43);
F(28) = -0.9 + (1-x(30)) + (1-x(8)) + x(43) - x(110)*x(43) - x(111)*(1-x(8)) - x(111)*x(43) + x(111)*x(110)*x(43);
F(29) = -0.9 + (1-x(30)) + (1-x(9)) + x(43) - x(112)*x(43) - x(113)*(1-x(9)) - x(113)*x(43) + x(113)*x(112)*x(43);
F(30) = -0.9 + (1-x(30)) + (1-x(10)) + x(43) - x(114)*x(43) - x(115)*(1-x(10)) - x(115)*x(43) + x(115)*x(114)*x(43);
F(31) = -0.9 + (1-x(28)) + (1-x(11)) + x(44) - x(116)*x(44) - x(117)*(1-x(11)) - x(117)*x(44) + x(117)*x(116)*x(44);
F(32) = -0.9 + (1-x(28)) + (1-x(12)) + x(44) - x(118)*x(44) - x(119)*(1-x(12)) - x(119)*x(44) + x(119)*x(118)*x(44);
F(33) = -0.9 + (1-x(28)) + (1-x(13)) + x(44) - x(120)*x(44) - x(121)*(1-x(13)) - x(121)*x(44) + x(121)*x(120)*x(44);
F(34) = -0.9 + (1-x(28)) + (1-x(14)) + x(44) - x(122)*x(44) - x(123)*(1-x(14)) - x(123)*x(44) + x(123)*x(122)*x(44);
F(35) = -0.9 + (1-x(29)) + (1-x(11)) + x(45) - x(124)*x(45) - x(125)*(1-x(11)) - x(125)*x(45) + x(125)*x(124)*x(45);
F(36) = -0.9 + (1-x(29)) + (1-x(12)) + x(45) - x(126)*x(45) - x(127)*(1-x(12)) - x(127)*x(45) + x(127)*x(126)*x(45);
F(37) = -0.9 + (1-x(29)) + (1-x(13)) + x(45) - x(128)*x(45) - x(129)*(1-x(13)) - x(129)*x(45) + x(129)*x(128)*x(45);
F(38) = -0.9 + (1-x(29)) + (1-x(14)) + x(45) - x(130)*x(45) - x(131)*(1-x(14)) - x(131)*x(45) + x(131)*x(130)*x(45);
F(39) = -0.9 + (1-x(30)) + (1-x(11)) + x(46) - x(132)*x(46) - x(133)*(1-x(11)) - x(133)*x(46) + x(133)*x(132)*x(46);
F(40) = -0.9 + (1-x(30)) + (1-x(12)) + x(46) - x(134)*x(46) - x(135)*(1-x(12)) - x(135)*x(46) + x(135)*x(134)*x(46);
F(41) = -0.9 + (1-x(30)) + (1-x(13)) + x(46) - x(136)*x(46) - x(137)*(1-x(13)) - x(137)*x(46) + x(137)*x(136)*x(46);
F(42) = -0.9 + (1-x(30)) + (1-x(14)) + x(46) - x(138)*x(46) - x(139)*(1-x(14)) - x(139)*x(46) + x(139)*x(138)*x(46);
F(43) = -0.9 + (1-x(28)) + (1-x(15)) + x(47) - x(140)*x(47) - x(141)*(1-x(15)) - x(141)*x(47) + x(141)*x(140)*x(47);
F(44) = -0.9 + (1-x(28)) + (1-x(16)) + x(47) - x(142)*x(47) - x(143)*(1-x(16)) - x(143)*x(47) + x(143)*x(142)*x(47);
F(45) = -0.9 + (1-x(28)) + (1-x(17)) + x(47) - x(144)*x(47) - x(145)*(1-x(17)) - x(145)*x(47) + x(145)*x(144)*x(47);
F(46) = -0.9 + (1-x(28)) + (1-x(18)) + x(47) - x(146)*x(47) - x(147)*(1-x(18)) - x(147)*x(47) + x(147)*x(146)*x(47);
F(47) = -0.9 + (1-x(29)) + (1-x(15)) + x(48) - x(148)*x(48) - x(149)*(1-x(15)) - x(149)*x(48) + x(149)*x(148)*x(48);
F(48) = -0.9 + (1-x(29)) + (1-x(16)) + x(48) - x(150)*x(48) - x(151)*(1-x(16)) - x(151)*x(48) + x(151)*x(150)*x(48);
F(49) = -0.9 + (1-x(29)) + (1-x(17)) + x(48) - x(152)*x(48) - x(153)*(1-x(17)) - x(153)*x(48) + x(153)*x(152)*x(48);
F(50) = -0.9 + (1-x(29)) + (1-x(18)) + x(48) - x(154)*x(48) - x(155)*(1-x(18)) - x(155)*x(48) + x(155)*x(154)*x(48);
F(51) = -0.9 + (1-x(30)) + (1-x(15)) + x(49) - x(156)*x(49) - x(157)*(1-x(15)) - x(157)*x(49) + x(157)*x(156)*x(49);
F(52) = -0.9 + (1-x(30)) + (1-x(16)) + x(49) - x(158)*x(49) - x(159)*(1-x(16)) - x(159)*x(49) + x(159)*x(158)*x(49);
F(53) = -0.9 + (1-x(30)) + (1-x(17)) + x(49) - x(160)*x(49) - x(161)*(1-x(17)) - x(161)*x(49) + x(161)*x(160)*x(49);
F(54) = -0.9 + (1-x(30)) + (1-x(18)) + x(49) - x(162)*x(49) - x(163)*(1-x(18)) - x(163)*x(49) + x(163)*x(162)*x(49);
F(55) = -0.9 + (1-x(28)) + (1-x(19)) + x(50) - x(164)*x(50) - x(165)*(1-x(19)) - x(165)*x(50) + x(165)*x(164)*x(50);
F(56) = -0.9 + (1-x(28)) + (1-x(20)) + x(50) - x(166)*x(50) - x(167)*(1-x(20)) - x(167)*x(50) + x(167)*x(166)*x(50);
F(57) = -0.9 + (1-x(28)) + (1-x(21)) + x(50) - x(168)*x(50) - x(169)*(1-x(21)) - x(169)*x(50) + x(169)*x(168)*x(50);
F(58) = -0.9 + (1-x(28)) + (1-x(22)) + x(50) - x(170)*x(50) - x(171)*(1-x(22)) - x(171)*x(50) + x(171)*x(170)*x(50);
F(59) = -0.9 + (1-x(29)) + (1-x(19)) + x(51) - x(172)*x(51) - x(173)*(1-x(19)) - x(173)*x(51) + x(173)*x(172)*x(51);
F(60) = -0.9 + (1-x(29)) + (1-x(20)) + x(51) - x(174)*x(51) - x(175)*(1-x(20)) - x(175)*x(51) + x(175)*x(174)*x(51);
F(61) = -0.9 + (1-x(29)) + (1-x(21)) + x(51) - x(176)*x(51) - x(177)*(1-x(21)) - x(177)*x(51) + x(177)*x(176)*x(51);
F(62) = -0.9 + (1-x(29)) + (1-x(22)) + x(51) - x(178)*x(51) - x(179)*(1-x(22)) - x(179)*x(51) + x(179)*x(178)*x(51);
F(63) = -0.9 + (1-x(30)) + (1-x(19)) + x(52) - x(180)*x(52) - x(181)*(1-x(19)) - x(181)*x(52) + x(181)*x(180)*x(52);
F(64) = -0.9 + (1-x(30)) + (1-x(20)) + x(52) - x(182)*x(52) - x(183)*(1-x(20)) - x(183)*x(52) + x(183)*x(182)*x(52);
F(65) = -0.9 + (1-x(30)) + (1-x(21)) + x(52) - x(184)*x(52) - x(185)*(1-x(21)) - x(185)*x(52) + x(185)*x(184)*x(52);
F(66) = -0.9 + (1-x(30)) + (1-x(22)) + x(52) - x(186)*x(52) - x(187)*(1-x(22)) - x(187)*x(52) + x(187)*x(186)*x(52);
F(67) = -0.9 + (1-x(28)) + (1-x(23)) + x(53) - x(188)*x(53) - x(189)*(1-x(23)) - x(189)*x(53) + x(189)*x(188)*x(53);
F(68) = -0.9 + (1-x(28)) + (1-x(24)) + x(53) - x(190)*x(53) - x(191)*(1-x(24)) - x(191)*x(53) + x(191)*x(190)*x(53);
F(69) = -0.9 + (1-x(28)) + (1-x(25)) + x(53) - x(192)*x(53) - x(193)*(1-x(25)) - x(193)*x(53) + x(193)*x(192)*x(53);
F(70) = -0.9 + (1-x(28)) + (1-x(26)) + x(53) - x(194)*x(53) - x(195)*(1-x(26)) - x(195)*x(53) + x(195)*x(194)*x(53);
F(71) = -0.9 + (1-x(29)) + (1-x(23)) + x(54) - x(196)*x(54) - x(197)*(1-x(23)) - x(197)*x(54) + x(197)*x(196)*x(54);
F(72) = -0.9 + (1-x(29)) + (1-x(24)) + x(54) - x(198)*x(54) - x(199)*(1-x(24)) - x(199)*x(54) + x(199)*x(198)*x(54);
F(73) = -0.9 + (1-x(29)) + (1-x(25)) + x(54) - x(200)*x(54) - x(201)*(1-x(25)) - x(201)*x(54) + x(201)*x(200)*x(54);
F(74) = -0.9 + (1-x(29)) + (1-x(26)) + x(54) - x(202)*x(54) - x(203)*(1-x(26)) - x(203)*x(54) + x(203)*x(202)*x(54);
F(75) = -0.9 + (1-x(30)) + (1-x(23)) + x(55) - x(204)*x(55) - x(205)*(1-x(23)) - x(205)*x(55) + x(205)*x(204)*x(55);
F(76) = -0.9 + (1-x(30)) + (1-x(24)) + x(55) - x(206)*x(55) - x(207)*(1-x(24)) - x(207)*x(55) + x(207)*x(206)*x(55);
F(77) = -0.9 + (1-x(30)) + (1-x(25)) + x(55) - x(208)*x(55) - x(209)*(1-x(25)) - x(209)*x(55) + x(209)*x(208)*x(55);
F(78) = -0.9 + (1-x(30)) + (1-x(26)) + x(55) - x(210)*x(55) - x(211)*(1-x(26)) - x(211)*x(55) + x(211)*x(210)*x(55);
F(79) = -0.9 + (1-x(27)) + (1-x(31)) + x(56) - x(212)*x(56) - x(213)*(1-x(31)) - x(213)*x(56) + x(213)*x(212)*x(56);
F(80) = -0.9 + (x(1));
F(81) = -0.9 + (x(28));
F(82) = -0.9 + (1-x(3));
F(83) = -0.9 + (1-x(4));
F(84) = -0.9 + (1-x(5));
F(85) = -0.9 + (1-x(6));
F(86) = -0.9 + (1-x(7));
F(87) = -0.9 + (1-x(8));
F(88) = -0.9 + (1-x(9));
F(89) = -0.9 + (1-x(10));
F(90) = -0.9 + (1-x(11));
F(91) = -0.9 + (1-x(12));
F(92) = -0.9 + (1-x(13));
F(93) = -0.9 + (1-x(14));
F(94) = -0.9 + (1-x(15));
F(95) = -0.9 + (1-x(16));
F(96) = -0.9 + (1-x(17));
F(97) = -0.9 + (1-x(18));
F(98) = -0.9 + (1-x(19));
F(99) = -0.9 + (1-x(20));
F(100) = -0.9 + (1-x(21));
F(101) = -0.9 + (1-x(22));
F(102) = -0.9 + (1-x(23));
F(103) = -0.9 + (1-x(24));
F(104) = -0.9 + (1-x(25));
F(105) = -0.9 + (1-x(26));
