1 /* 2 * ExampleBasedTest.java 3 * This file is part of JaCoP. 4 * <p> 5 * JaCoP is a Java Constraint Programming solver. 6 * <p> 7 * Copyright (C) 2000-2008 Krzysztof Kuchcinski and Radoslaw Szymanek 8 * <p> 9 * This program is free software: you can redistribute it and/or modify 10 * it under the terms of the GNU Affero General Public License as published by 11 * the Free Software Foundation, either version 3 of the License, or 12 * (at your option) any later version. 13 * <p> 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU Affero General Public License for more details. 18 * <p> 19 * Notwithstanding any other provision of this License, the copyright 20 * owners of this work supplement the terms of this License with terms 21 * prohibiting misrepresentation of the origin of this work and requiring 22 * that modified versions of this work be marked in reasonable ways as 23 * different from the original version. This supplement of the license 24 * terms is in accordance with Section 7 of GNU Affero General Public 25 * License version 3. 26 * <p> 27 * You should have received a copy of the GNU Affero General Public License 28 * along with this program. If not, see <http://www.gnu.org/licenses/>. 29 */ 30 31 package org.jacop; 32 33 import org.jacop.examples.fd.*; 34 import org.jacop.examples.fd.carsequencing.CarSequencing; 35 import org.jacop.examples.fd.crosswords.CrossWord; 36 import org.jacop.examples.fd.muca.MUCA; 37 import org.jacop.examples.fd.nonogram.Nonogram; 38 import org.jacop.examples.fd.qcp.QCP; 39 import org.junit.Test; 40 41 import java.util.HashSet; 42 import java.util.Set; 43 44 import static org.junit.Assert.assertEquals; 45 46 /** 47 * It is performing testing based on the examples present in the library. 48 * 49 * @author Radoslaw Szymanek and Krzysztof Kuchcinski 50 * @version 4.8 51 */ 52 public class ExampleBasedTest { 53 testCarSequencing()54 @Test public void testCarSequencing() { 55 56 CarSequencing example = new CarSequencing(); 57 58 CarSequencing.readFromArray(CarSequencing.problem(), example); 59 60 example.model(); 61 62 String[] description = CarSequencing.toStringArray(example); 63 64 for (String line : description) 65 System.out.println(line); 66 67 assertEquals(true, example.searchAllAtOnce()); 68 assertEquals(6, example.search.getSolutionListener().solutionsNo()); 69 } 70 testCrossWord()71 @Test public void testCrossWord() { 72 73 CrossWord crossWord = new CrossWord(); 74 75 crossWord.model(); 76 77 crossWord.searchAllAtOnceNoRecord(); 78 79 assertEquals(129, crossWord.search.getSolutionListener().solutionsNo()); 80 } 81 testMUCA()82 @Test public void testMUCA() { 83 84 MUCA problem = new MUCA(); 85 problem.model(); 86 problem.searchSpecial(); 87 assertEquals( 88 "[0of-g0 = 0,0of-g1 = 0,0of-g2 = 0,0of-g3 = 0,0of-g4 = 0,0of-g5 = 0,0of-g6 = 0,0of-g7 = 0,bidCost1 = -477,bidCost2 = -630,bidCost3 = -540,bidCost4 = -78,bidCost5 = 0,cost = -1725,deltaI_g0t0 = 0,deltaI_g0t1 = 0,deltaI_g0t10 = 0,deltaI_g0t11 = 0,deltaI_g0t12 = 0,deltaI_g0t13 = 0,deltaI_g0t14 = 0,deltaI_g0t2 = 0,deltaI_g0t3 = 0,deltaI_g0t4 = 0,deltaI_g0t5 = -6,deltaI_g0t6 = 0,deltaI_g0t7 = 0,deltaI_g0t8 = 0,deltaI_g0t9 = 0,deltaI_g1t0 = 0,deltaI_g1t1 = -6,deltaI_g1t10 = 0,deltaI_g1t11 = 0,deltaI_g1t12 = 0,deltaI_g1t13 = 0,deltaI_g1t14 = 0,deltaI_g1t2 = 0,deltaI_g1t3 = 0,deltaI_g1t4 = -3,deltaI_g1t5 = -4,deltaI_g1t6 = 0,deltaI_g1t7 = 0,deltaI_g1t8 = -10,deltaI_g1t9 = 0,deltaI_g2t0 = 0,deltaI_g2t1 = 0,deltaI_g2t10 = 0,deltaI_g2t11 = 0,deltaI_g2t12 = 0,deltaI_g2t13 = 0,deltaI_g2t14 = 0,deltaI_g2t2 = 0,deltaI_g2t3 = 0,deltaI_g2t4 = -5,deltaI_g2t5 = -7,deltaI_g2t6 = 0,deltaI_g2t7 = -4,deltaI_g2t8 = 0,deltaI_g2t9 = 0,deltaI_g3t0 = 0,deltaI_g3t1 = 0,deltaI_g3t10 = 0,deltaI_g3t11 = 0,deltaI_g3t12 = 0,deltaI_g3t13 = 0,deltaI_g3t14 = 0,deltaI_g3t2 = 0,deltaI_g3t3 = 0,deltaI_g3t4 = 0,deltaI_g3t5 = -6,deltaI_g3t6 = -5,deltaI_g3t7 = 0,deltaI_g3t8 = 0,deltaI_g3t9 = 0,deltaI_g4t0 = 0,deltaI_g4t1 = 0,deltaI_g4t10 = 0,deltaI_g4t11 = 0,deltaI_g4t12 = 0,deltaI_g4t13 = 0,deltaI_g4t14 = 0,deltaI_g4t2 = 0,deltaI_g4t3 = 0,deltaI_g4t4 = -6,deltaI_g4t5 = -5,deltaI_g4t6 = 0,deltaI_g4t7 = -4,deltaI_g4t8 = 0,deltaI_g4t9 = 0,deltaI_g5t0 = 0,deltaI_g5t1 = -7,deltaI_g5t10 = 0,deltaI_g5t11 = 0,deltaI_g5t12 = 0,deltaI_g5t13 = 0,deltaI_g5t14 = 0,deltaI_g5t2 = 0,deltaI_g5t3 = 0,deltaI_g5t4 = 0,deltaI_g5t5 = 0,deltaI_g5t6 = 0,deltaI_g5t7 = 0,deltaI_g5t8 = 0,deltaI_g5t9 = 0,deltaI_g6t0 = 0,deltaI_g6t1 = 0,deltaI_g6t10 = 0,deltaI_g6t11 = 0,deltaI_g6t12 = 0,deltaI_g6t13 = 0,deltaI_g6t14 = 0,deltaI_g6t2 = 0,deltaI_g6t3 = 0,deltaI_g6t4 = 0,deltaI_g6t5 = -5,deltaI_g6t6 = -4,deltaI_g6t7 = 0,deltaI_g6t8 = 0,deltaI_g6t9 = 0,deltaI_g7t0 = 0,deltaI_g7t1 = 0,deltaI_g7t10 = 0,deltaI_g7t11 = 0,deltaI_g7t12 = 0,deltaI_g7t13 = 0,deltaI_g7t14 = 0,deltaI_g7t2 = 0,deltaI_g7t3 = 0,deltaI_g7t4 = -5,deltaI_g7t5 = 0,deltaI_g7t6 = 0,deltaI_g7t7 = 0,deltaI_g7t8 = 0,deltaI_g7t9 = 0,deltaO_g0t0 = 0,deltaO_g0t1 = 0,deltaO_g0t10 = 0,deltaO_g0t11 = 0,deltaO_g0t12 = 0,deltaO_g0t13 = 0,deltaO_g0t14 = 0,deltaO_g0t2 = 0,deltaO_g0t3 = 6,deltaO_g0t4 = 0,deltaO_g0t5 = 0,deltaO_g0t6 = 6,deltaO_g0t7 = 0,deltaO_g0t8 = 5,deltaO_g0t9 = 0,deltaO_g1t0 = 7,deltaO_g1t1 = 0,deltaO_g1t10 = 0,deltaO_g1t11 = 0,deltaO_g1t12 = 0,deltaO_g1t13 = 0,deltaO_g1t14 = 0,deltaO_g1t2 = 0,deltaO_g1t3 = 6,deltaO_g1t4 = 7,deltaO_g1t5 = 0,deltaO_g1t6 = 0,deltaO_g1t7 = 6,deltaO_g1t8 = 0,deltaO_g1t9 = 0,deltaO_g2t0 = 7,deltaO_g2t1 = 0,deltaO_g2t10 = 0,deltaO_g2t11 = 0,deltaO_g2t12 = 0,deltaO_g2t13 = 0,deltaO_g2t14 = 0,deltaO_g2t2 = 4,deltaO_g2t3 = 0,deltaO_g2t4 = 6,deltaO_g2t5 = 0,deltaO_g2t6 = 0,deltaO_g2t7 = 7,deltaO_g2t8 = 0,deltaO_g2t9 = 0,deltaO_g3t0 = 0,deltaO_g3t1 = 4,deltaO_g3t10 = 0,deltaO_g3t11 = 0,deltaO_g3t12 = 0,deltaO_g3t13 = 0,deltaO_g3t14 = 0,deltaO_g3t2 = 0,deltaO_g3t3 = 0,deltaO_g3t4 = 5,deltaO_g3t5 = 7,deltaO_g3t6 = 6,deltaO_g3t7 = 5,deltaO_g3t8 = 5,deltaO_g3t9 = 6,deltaO_g4t0 = 7,deltaO_g4t1 = 6,deltaO_g4t10 = 0,deltaO_g4t11 = 0,deltaO_g4t12 = 0,deltaO_g4t13 = 0,deltaO_g4t14 = 0,deltaO_g4t2 = 4,deltaO_g4t3 = 6,deltaO_g4t4 = 6,deltaO_g4t5 = 0,deltaO_g4t6 = 0,deltaO_g4t7 = 0,deltaO_g4t8 = 5,deltaO_g4t9 = 0,deltaO_g5t0 = 7,deltaO_g5t1 = 0,deltaO_g5t10 = 0,deltaO_g5t11 = 0,deltaO_g5t12 = 0,deltaO_g5t13 = 0,deltaO_g5t14 = 0,deltaO_g5t2 = 4,deltaO_g5t3 = 6,deltaO_g5t4 = 5,deltaO_g5t5 = 5,deltaO_g5t6 = 0,deltaO_g5t7 = 0,deltaO_g5t8 = 5,deltaO_g5t9 = 0,deltaO_g6t0 = 7,deltaO_g6t1 = 0,deltaO_g6t10 = 0,deltaO_g6t11 = 0,deltaO_g6t12 = 0,deltaO_g6t13 = 0,deltaO_g6t14 = 0,deltaO_g6t2 = 4,deltaO_g6t3 = 6,deltaO_g6t4 = 0,deltaO_g6t5 = 0,deltaO_g6t6 = 0,deltaO_g6t7 = 5,deltaO_g6t8 = 5,deltaO_g6t9 = 0,deltaO_g7t0 = 7,deltaO_g7t1 = 5,deltaO_g7t10 = 0,deltaO_g7t11 = 0,deltaO_g7t12 = 0,deltaO_g7t13 = 0,deltaO_g7t14 = 0,deltaO_g7t2 = 4,deltaO_g7t3 = 6,deltaO_g7t4 = 0,deltaO_g7t5 = 5,deltaO_g7t6 = 6,deltaO_g7t7 = 5,deltaO_g7t8 = 5,deltaO_g7t9 = 0,delta_t10_g1 = -10,delta_t11_g6 = -4,delta_t12_g3 = 0,delta_t14_g1 = 0,delta_t17_g0 = 0,delta_t17_g5 = 0,delta_t1_g1 = -6,delta_t1_g5 = -7,delta_t20_g1 = 0,delta_t21_g1 = 0,delta_t21_g3 = 0,delta_t21_g6 = 0,delta_t22_g0 = 0,delta_t22_g3 = 0,delta_t22_g5 = 0,delta_t23_g4 = -4,delta_t25_g7 = 0,delta_t26_g1 = 0,delta_t27_g1 = 0,delta_t28_g2 = 0,delta_t28_g6 = 0,delta_t2_g0 = -6,delta_t2_g1 = -4,delta_t2_g2 = -7,delta_t2_g4 = -5,delta_t2_g6 = -5,delta_t5_g4 = 0,delta_t6_g1 = 0,delta_t6_g7 = 0,delta_t7_g1 = 0,delta_t8_g6 = 0,delta_t8_g7 = 0,delta_t9_g7 = -5,delta_tid_10_g0 = 5,delta_tid_10_g2 = 0,delta_tid_10_g3 = 5,delta_tid_10_g4 = 5,delta_tid_10_g5 = 5,delta_tid_10_g6 = 5,delta_tid_10_g7 = 5,delta_tid_11_g0 = 6,delta_tid_11_g1 = 0,delta_tid_11_g2 = 0,delta_tid_11_g3 = 1,delta_tid_11_g4 = 0,delta_tid_11_g5 = 0,delta_tid_11_g7 = 6,delta_tid_12_g0 = 0,delta_tid_12_g1 = 0,delta_tid_12_g2 = 0,delta_tid_12_g4 = 0,delta_tid_12_g5 = 0,delta_tid_12_g6 = 0,delta_tid_12_g7 = 0,delta_tid_13_g0 = 0,delta_tid_13_g1 = 0,delta_tid_13_g2 = 0,delta_tid_13_g3 = 0,delta_tid_13_g4 = 0,delta_tid_13_g5 = 0,delta_tid_13_g6 = 0,delta_tid_13_g7 = 0,delta_tid_14_g0 = 0,delta_tid_14_g2 = 0,delta_tid_14_g3 = 0,delta_tid_14_g4 = 0,delta_tid_14_g5 = 0,delta_tid_14_g6 = 0,delta_tid_14_g7 = 0,delta_tid_15_g0 = 0,delta_tid_15_g1 = 0,delta_tid_15_g2 = 0,delta_tid_15_g3 = 0,delta_tid_15_g4 = 0,delta_tid_15_g5 = 0,delta_tid_15_g6 = 0,delta_tid_15_g7 = 0,delta_tid_16_g0 = 0,delta_tid_16_g1 = 0,delta_tid_16_g2 = 0,delta_tid_16_g3 = 0,delta_tid_16_g4 = 0,delta_tid_16_g5 = 0,delta_tid_16_g6 = 0,delta_tid_16_g7 = 0,delta_tid_17_g1 = 0,delta_tid_17_g2 = 0,delta_tid_17_g3 = 0,delta_tid_17_g4 = 0,delta_tid_17_g6 = 0,delta_tid_17_g7 = 0,delta_tid_18_g0 = 0,delta_tid_18_g1 = 0,delta_tid_18_g2 = 4,delta_tid_18_g3 = 0,delta_tid_18_g4 = 4,delta_tid_18_g5 = 4,delta_tid_18_g6 = 4,delta_tid_18_g7 = 4,delta_tid_19_g0 = 6,delta_tid_19_g1 = 6,delta_tid_19_g2 = 0,delta_tid_19_g3 = 0,delta_tid_19_g4 = 6,delta_tid_19_g5 = 6,delta_tid_19_g6 = 6,delta_tid_19_g7 = 6,delta_tid_1_g0 = 0,delta_tid_1_g2 = 0,delta_tid_1_g3 = 4,delta_tid_1_g4 = 6,delta_tid_1_g6 = 0,delta_tid_1_g7 = 5,delta_tid_20_g0 = 0,delta_tid_20_g2 = 0,delta_tid_20_g3 = 0,delta_tid_20_g4 = 0,delta_tid_20_g5 = 0,delta_tid_20_g6 = 0,delta_tid_20_g7 = 0,delta_tid_21_g0 = 0,delta_tid_21_g2 = 0,delta_tid_21_g4 = 0,delta_tid_21_g5 = 0,delta_tid_21_g7 = 0,delta_tid_22_g1 = 0,delta_tid_22_g2 = 0,delta_tid_22_g4 = 0,delta_tid_22_g6 = 0,delta_tid_22_g7 = 0,delta_tid_23_g0 = 0,delta_tid_23_g1 = 6,delta_tid_23_g2 = 3,delta_tid_23_g3 = 5,delta_tid_23_g5 = 0,delta_tid_23_g6 = 5,delta_tid_23_g7 = 5,delta_tid_24_g0 = 0,delta_tid_24_g1 = 0,delta_tid_24_g2 = 0,delta_tid_24_g3 = 6,delta_tid_24_g4 = 0,delta_tid_24_g5 = 0,delta_tid_24_g6 = 0,delta_tid_24_g7 = 0,delta_tid_25_g0 = 0,delta_tid_25_g1 = 0,delta_tid_25_g2 = 0,delta_tid_25_g3 = 0,delta_tid_25_g4 = 0,delta_tid_25_g5 = 0,delta_tid_25_g6 = 0,delta_tid_26_g0 = 0,delta_tid_26_g2 = 0,delta_tid_26_g3 = 0,delta_tid_26_g4 = 0,delta_tid_26_g5 = 0,delta_tid_26_g6 = 0,delta_tid_26_g7 = 0,delta_tid_27_g0 = 0,delta_tid_27_g2 = 0,delta_tid_27_g3 = 0,delta_tid_27_g4 = 0,delta_tid_27_g5 = 0,delta_tid_27_g6 = 0,delta_tid_27_g7 = 0,delta_tid_28_g0 = 0,delta_tid_28_g1 = 0,delta_tid_28_g3 = 0,delta_tid_28_g4 = 0,delta_tid_28_g5 = 0,delta_tid_28_g7 = 0,delta_tid_2_g3 = 1,delta_tid_2_g5 = 5,delta_tid_2_g7 = 5,delta_tid_3_g0 = 0,delta_tid_3_g1 = 7,delta_tid_3_g2 = 7,delta_tid_3_g3 = 0,delta_tid_3_g4 = 7,delta_tid_3_g5 = 7,delta_tid_3_g6 = 7,delta_tid_3_g7 = 7,delta_tid_4_g0 = 0,delta_tid_4_g1 = 0,delta_tid_4_g2 = 0,delta_tid_4_g3 = 0,delta_tid_4_g4 = 0,delta_tid_4_g5 = 0,delta_tid_4_g6 = 0,delta_tid_4_g7 = 0,delta_tid_5_g0 = 0,delta_tid_5_g1 = 0,delta_tid_5_g2 = 0,delta_tid_5_g3 = 0,delta_tid_5_g5 = 0,delta_tid_5_g6 = 0,delta_tid_5_g7 = 0,delta_tid_6_g0 = 0,delta_tid_6_g2 = 0,delta_tid_6_g3 = 0,delta_tid_6_g4 = 0,delta_tid_6_g5 = 0,delta_tid_6_g6 = 0,delta_tid_7_g0 = 0,delta_tid_7_g2 = 0,delta_tid_7_g3 = 0,delta_tid_7_g4 = 0,delta_tid_7_g5 = 0,delta_tid_7_g6 = 0,delta_tid_7_g7 = 0,delta_tid_8_g0 = 0,delta_tid_8_g1 = 0,delta_tid_8_g2 = 0,delta_tid_8_g3 = 0,delta_tid_8_g4 = 0,delta_tid_8_g5 = 0,delta_tid_9_g0 = 0,delta_tid_9_g1 = 4,delta_tid_9_g2 = 1,delta_tid_9_g3 = 5,delta_tid_9_g4 = 0,delta_tid_9_g5 = 5,delta_tid_9_g6 = 0,ind_0_0 = 3,ind_0_1 = 0,ind_1_0 = 0,ind_1_1 = 3,ind_1_2 = 0,ind_2_0 = 0,ind_2_1 = 2,ind_2_2 = 0,ind_3_0 = 0,ind_3_1 = 2,ind_4_0 = 0,ind_4_1 = 0,initialQuantity_0 = 0,initialQuantity_1 = 0,initialQuantity_2 = 0,initialQuantity_3 = 0,initialQuantity_4 = 0,initialQuantity_5 = 0,initialQuantity_6 = 0,initialQuantity_7 = 0,isUsed_1 = 1,isUsed_10 = 1,isUsed_11 = 1,isUsed_12 = 0,isUsed_13 = 0,isUsed_14 = 0,isUsed_15 = 0,isUsed_16 = 0,isUsed_17 = 0,isUsed_18 = 1,isUsed_19 = 1,isUsed_2 = 1,isUsed_20 = 0,isUsed_21 = 0,isUsed_22 = 0,isUsed_23 = 1,isUsed_24 = 1,isUsed_25 = 0,isUsed_26 = 0,isUsed_27 = 0,isUsed_28 = 0,isUsed_3 = 1,isUsed_4 = 0,isUsed_5 = 0,isUsed_6 = 0,isUsed_7 = 0,isUsed_8 = 0,isUsed_9 = 1,partialSum_0_0 = 0,partialSum_0_1 = 0,partialSum_0_10 = 11,partialSum_0_11 = 11,partialSum_0_12 = 11,partialSum_0_13 = 11,partialSum_0_14 = 11,partialSum_0_2 = 0,partialSum_0_3 = 6,partialSum_0_4 = 6,partialSum_0_5 = 0,partialSum_0_6 = 6,partialSum_0_7 = 6,partialSum_0_8 = 11,partialSum_0_9 = 11,partialSum_1_0 = 7,partialSum_1_1 = 1,partialSum_1_10 = 3,partialSum_1_11 = 3,partialSum_1_12 = 3,partialSum_1_13 = 3,partialSum_1_14 = 3,partialSum_1_2 = 1,partialSum_1_3 = 7,partialSum_1_4 = 11,partialSum_1_5 = 7,partialSum_1_6 = 7,partialSum_1_7 = 13,partialSum_1_8 = 3,partialSum_1_9 = 3,partialSum_2_0 = 7,partialSum_2_1 = 7,partialSum_2_10 = 8,partialSum_2_11 = 8,partialSum_2_12 = 8,partialSum_2_13 = 8,partialSum_2_14 = 8,partialSum_2_2 = 11,partialSum_2_3 = 11,partialSum_2_4 = 12,partialSum_2_5 = 5,partialSum_2_6 = 5,partialSum_2_7 = 8,partialSum_2_8 = 8,partialSum_2_9 = 8,partialSum_3_0 = 0,partialSum_3_1 = 4,partialSum_3_10 = 27,partialSum_3_11 = 27,partialSum_3_12 = 27,partialSum_3_13 = 27,partialSum_3_14 = 27,partialSum_3_2 = 4,partialSum_3_3 = 4,partialSum_3_4 = 9,partialSum_3_5 = 10,partialSum_3_6 = 11,partialSum_3_7 = 16,partialSum_3_8 = 21,partialSum_3_9 = 27,partialSum_4_0 = 7,partialSum_4_1 = 13,partialSum_4_10 = 19,partialSum_4_11 = 19,partialSum_4_12 = 19,partialSum_4_13 = 19,partialSum_4_14 = 19,partialSum_4_2 = 17,partialSum_4_3 = 23,partialSum_4_4 = 23,partialSum_4_5 = 18,partialSum_4_6 = 18,partialSum_4_7 = 14,partialSum_4_8 = 19,partialSum_4_9 = 19,partialSum_5_0 = 7,partialSum_5_1 = 0,partialSum_5_10 = 25,partialSum_5_11 = 25,partialSum_5_12 = 25,partialSum_5_13 = 25,partialSum_5_14 = 25,partialSum_5_2 = 4,partialSum_5_3 = 10,partialSum_5_4 = 15,partialSum_5_5 = 20,partialSum_5_6 = 20,partialSum_5_7 = 20,partialSum_5_8 = 25,partialSum_5_9 = 25,partialSum_6_0 = 7,partialSum_6_1 = 7,partialSum_6_10 = 18,partialSum_6_11 = 18,partialSum_6_12 = 18,partialSum_6_13 = 18,partialSum_6_14 = 18,partialSum_6_2 = 11,partialSum_6_3 = 17,partialSum_6_4 = 17,partialSum_6_5 = 12,partialSum_6_6 = 8,partialSum_6_7 = 13,partialSum_6_8 = 18,partialSum_6_9 = 18,partialSum_7_0 = 7,partialSum_7_1 = 12,partialSum_7_10 = 38,partialSum_7_11 = 38,partialSum_7_12 = 38,partialSum_7_13 = 38,partialSum_7_14 = 38,partialSum_7_2 = 16,partialSum_7_3 = 22,partialSum_7_4 = 17,partialSum_7_5 = 22,partialSum_7_6 = 28,partialSum_7_7 = 33,partialSum_7_8 = 38,partialSum_7_9 = 38,t1 = 3,t10 = 24,t11 = 0,t12 = 0,t13 = 0,t14 = 0,t15 = 0,t2 = 1,t3 = 18,t4 = 19,t5 = 9,t6 = 2,t7 = 11,t8 = 23,t9 = 10]", 89 problem.store.toStringOrderedVars()); 90 91 problem = new MUCA(); 92 problem.filename = "src/main/java/org/jacop/examples/fd/muca/testset1.auct"; 93 problem.model(); 94 problem.searchSpecial(); 95 assertEquals( 96 "[0of-g0 = 0,0of-g1 = 0,0of-g2 = 0,bidCost1 = -100,cost = -100,deltaI_g0t0 = 0,deltaI_g0t1 = -1,deltaI_g0t2 = 0,deltaI_g1t0 = 0,deltaI_g1t1 = -1,deltaI_g1t2 = -1,deltaI_g2t0 = 0,deltaI_g2t1 = 0,deltaI_g2t2 = -1,deltaO_g0t0 = 1,deltaO_g0t1 = 0,deltaO_g0t2 = 0,deltaO_g1t0 = 1,deltaO_g1t1 = 1,deltaO_g1t2 = 0,deltaO_g2t0 = 0,deltaO_g2t1 = 1,deltaO_g2t2 = 2,delta_t2_g0 = -1,delta_t3_g1 = -1,delta_tid_1_g0 = 1,delta_tid_1_g1 = 1,delta_tid_1_g2 = 0,delta_tid_2_g1 = 0,delta_tid_2_g2 = 1,delta_tid_3_g0 = 0,delta_tid_3_g2 = 1,ind_0_0 = 3,initialQuantity_0 = 0,initialQuantity_1 = 0,initialQuantity_2 = 0,isUsed_1 = 1,isUsed_2 = 1,isUsed_3 = 1,partialSum_0_0 = 1,partialSum_0_1 = 0,partialSum_0_2 = 0,partialSum_1_0 = 1,partialSum_1_1 = 1,partialSum_1_2 = 0,partialSum_2_0 = 0,partialSum_2_1 = 1,partialSum_2_2 = 2,t1 = 1,t2 = 2,t3 = 3]", 97 problem.store.toStringOrderedVars()); 98 99 100 problem = new MUCA(); 101 problem.filename = "src/main/java/org/jacop/examples/fd/muca/testset2.auct"; 102 problem.model(); 103 problem.searchSpecial(); 104 assertEquals( 105 "[0of-g0 = 0,0of-g1 = 0,0of-g2 = 0,bidCost1 = -100,cost = -100,deltaI_g0t0 = 0,deltaI_g0t1 = -1,deltaI_g0t2 = 0,deltaI_g1t0 = 0,deltaI_g1t1 = -1,deltaI_g1t2 = -1,deltaI_g2t0 = 0,deltaI_g2t1 = 0,deltaI_g2t2 = -1,deltaO_g0t0 = 1,deltaO_g0t1 = 0,deltaO_g0t2 = 0,deltaO_g1t0 = 1,deltaO_g1t1 = 1,deltaO_g1t2 = 0,deltaO_g2t0 = 0,deltaO_g2t1 = 1,deltaO_g2t2 = 1,delta_t2_g0 = -1,delta_t3_g1 = -1,delta_tid_1_g0 = 1,delta_tid_1_g1 = 1,delta_tid_1_g2 = 0,delta_tid_2_g1 = 0,delta_tid_2_g2 = 1,delta_tid_3_g0 = 0,delta_tid_3_g2 = 0,ind_0_0 = 3,initialQuantity_0 = 0,initialQuantity_1 = 0,initialQuantity_2 = 0,isUsed_1 = 1,isUsed_2 = 1,isUsed_3 = 1,partialSum_0_0 = 1,partialSum_0_1 = 0,partialSum_0_2 = 0,partialSum_1_0 = 1,partialSum_1_1 = 1,partialSum_1_2 = 0,partialSum_2_0 = 0,partialSum_2_1 = 1,partialSum_2_2 = 1,t1 = 1,t2 = 2,t3 = 3]", 106 problem.store.toStringOrderedVars()); 107 108 } 109 testNonogram()110 @Test public void testNonogram() { 111 112 Nonogram example = new Nonogram(); 113 114 String[] solutions = 115 {"[board[0][0] = 0,board[0][1] = 0,board[0][2] = 0,board[0][3] = 1,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[1][0] = 1,board[1][1] = 1,board[1][2] = 1,board[1][3] = 1,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[2][0] = 1,board[2][1] = 1,board[2][2] = 1,board[2][3] = 1,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 1,board[3][0] = 0,board[3][1] = 0,board[3][2] = 1,board[3][3] = 1,board[3][4] = 1,board[3][5] = 1,board[3][6] = 1,board[3][7] = 1,board[3][8] = 1,board[3][9] = 1,board[4][0] = 0,board[4][1] = 0,board[4][2] = 1,board[4][3] = 1,board[4][4] = 0,board[4][5] = 0,board[4][6] = 0,board[4][7] = 1,board[4][8] = 1,board[4][9] = 0,board[5][0] = 0,board[5][1] = 0,board[5][2] = 1,board[5][3] = 1,board[5][4] = 1,board[5][5] = 0,board[5][6] = 1,board[5][7] = 1,board[5][8] = 1,board[5][9] = 0,board[6][0] = 1,board[6][1] = 0,board[6][2] = 0,board[6][3] = 1,board[6][4] = 1,board[6][5] = 1,board[6][6] = 1,board[6][7] = 1,board[6][8] = 0,board[6][9] = 0,board[7][0] = 1,board[7][1] = 0,board[7][2] = 1,board[7][3] = 1,board[7][4] = 0,board[7][5] = 0,board[7][6] = 1,board[7][7] = 1,board[7][8] = 0,board[7][9] = 1,board[8][0] = 1,board[8][1] = 1,board[8][2] = 1,board[8][3] = 0,board[8][4] = 0,board[8][5] = 0,board[8][6] = 0,board[8][7] = 1,board[8][8] = 1,board[8][9] = 1,board[9][0] = 0,board[9][1] = 1,board[9][2] = 1,board[9][3] = 1,board[9][4] = 1,board[9][5] = 1,board[9][6] = 1,board[9][7] = 1,board[9][8] = 1,board[9][9] = 0]", 116 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 1,board[0][12] = 1,board[0][13] = 1,board[0][14] = 1,board[0][15] = 1,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][20] = 0,board[0][21] = 0,board[0][22] = 0,board[0][23] = 0,board[0][24] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 1,board[10][10] = 1,board[10][11] = 1,board[10][12] = 1,board[10][13] = 1,board[10][14] = 1,board[10][15] = 0,board[10][16] = 0,board[10][17] = 0,board[10][18] = 0,board[10][19] = 0,board[10][1] = 1,board[10][20] = 0,board[10][21] = 1,board[10][22] = 1,board[10][23] = 1,board[10][24] = 1,board[10][2] = 1,board[10][3] = 0,board[10][4] = 0,board[10][5] = 0,board[10][6] = 0,board[10][7] = 1,board[10][8] = 1,board[10][9] = 1,board[11][0] = 0,board[11][10] = 1,board[11][11] = 1,board[11][12] = 1,board[11][13] = 1,board[11][14] = 0,board[11][15] = 0,board[11][16] = 1,board[11][17] = 1,board[11][18] = 1,board[11][19] = 0,board[11][1] = 1,board[11][20] = 0,board[11][21] = 0,board[11][22] = 1,board[11][23] = 1,board[11][24] = 1,board[11][2] = 1,board[11][3] = 1,board[11][4] = 0,board[11][5] = 0,board[11][6] = 0,board[11][7] = 0,board[11][8] = 1,board[11][9] = 1,board[12][0] = 0,board[12][10] = 0,board[12][11] = 0,board[12][12] = 0,board[12][13] = 0,board[12][14] = 0,board[12][15] = 1,board[12][16] = 1,board[12][17] = 1,board[12][18] = 1,board[12][19] = 1,board[12][1] = 0,board[12][20] = 0,board[12][21] = 0,board[12][22] = 0,board[12][23] = 1,board[12][24] = 1,board[12][2] = 0,board[12][3] = 1,board[12][4] = 1,board[12][5] = 0,board[12][6] = 0,board[12][7] = 0,board[12][8] = 0,board[12][9] = 0,board[13][0] = 0,board[13][10] = 1,board[13][11] = 0,board[13][12] = 0,board[13][13] = 0,board[13][14] = 1,board[13][15] = 1,board[13][16] = 1,board[13][17] = 0,board[13][18] = 0,board[13][19] = 0,board[13][1] = 0,board[13][20] = 0,board[13][21] = 0,board[13][22] = 0,board[13][23] = 1,board[13][24] = 1,board[13][2] = 0,board[13][3] = 1,board[13][4] = 1,board[13][5] = 0,board[13][6] = 0,board[13][7] = 0,board[13][8] = 1,board[13][9] = 1,board[14][0] = 0,board[14][10] = 1,board[14][11] = 1,board[14][12] = 1,board[14][13] = 1,board[14][14] = 1,board[14][15] = 1,board[14][16] = 0,board[14][17] = 0,board[14][18] = 0,board[14][19] = 0,board[14][1] = 0,board[14][20] = 0,board[14][21] = 0,board[14][22] = 0,board[14][23] = 1,board[14][24] = 1,board[14][2] = 0,board[14][3] = 1,board[14][4] = 1,board[14][5] = 1,board[14][6] = 0,board[14][7] = 0,board[14][8] = 0,board[14][9] = 1,board[15][0] = 0,board[15][10] = 1,board[15][11] = 1,board[15][12] = 1,board[15][13] = 1,board[15][14] = 1,board[15][15] = 1,board[15][16] = 0,board[15][17] = 0,board[15][18] = 0,board[15][19] = 0,board[15][1] = 0,board[15][20] = 0,board[15][21] = 0,board[15][22] = 1,board[15][23] = 1,board[15][24] = 1,board[15][2] = 0,board[15][3] = 0,board[15][4] = 1,board[15][5] = 1,board[15][6] = 1,board[15][7] = 1,board[15][8] = 0,board[15][9] = 0,board[16][0] = 0,board[16][10] = 1,board[16][11] = 1,board[16][12] = 1,board[16][13] = 1,board[16][14] = 1,board[16][15] = 1,board[16][16] = 1,board[16][17] = 0,board[16][18] = 0,board[16][19] = 0,board[16][1] = 0,board[16][20] = 0,board[16][21] = 1,board[16][22] = 1,board[16][23] = 1,board[16][24] = 1,board[16][2] = 0,board[16][3] = 0,board[16][4] = 0,board[16][5] = 1,board[16][6] = 1,board[16][7] = 1,board[16][8] = 1,board[16][9] = 0,board[17][0] = 0,board[17][10] = 1,board[17][11] = 1,board[17][12] = 1,board[17][13] = 0,board[17][14] = 0,board[17][15] = 0,board[17][16] = 1,board[17][17] = 1,board[17][18] = 1,board[17][19] = 0,board[17][1] = 0,board[17][20] = 0,board[17][21] = 1,board[17][22] = 1,board[17][23] = 0,board[17][24] = 1,board[17][2] = 0,board[17][3] = 0,board[17][4] = 0,board[17][5] = 0,board[17][6] = 0,board[17][7] = 1,board[17][8] = 1,board[17][9] = 0,board[18][0] = 0,board[18][10] = 1,board[18][11] = 1,board[18][12] = 0,board[18][13] = 1,board[18][14] = 1,board[18][15] = 1,board[18][16] = 1,board[18][17] = 1,board[18][18] = 0,board[18][19] = 0,board[18][1] = 0,board[18][20] = 1,board[18][21] = 1,board[18][22] = 1,board[18][23] = 0,board[18][24] = 0,board[18][2] = 0,board[18][3] = 1,board[18][4] = 1,board[18][5] = 1,board[18][6] = 1,board[18][7] = 1,board[18][8] = 1,board[18][9] = 1,board[19][0] = 0,board[19][10] = 1,board[19][11] = 0,board[19][12] = 1,board[19][13] = 1,board[19][14] = 1,board[19][15] = 1,board[19][16] = 1,board[19][17] = 1,board[19][18] = 1,board[19][19] = 1,board[19][1] = 0,board[19][20] = 1,board[19][21] = 1,board[19][22] = 0,board[19][23] = 0,board[19][24] = 0,board[19][2] = 1,board[19][3] = 1,board[19][4] = 1,board[19][5] = 1,board[19][6] = 1,board[19][7] = 1,board[19][8] = 1,board[19][9] = 1,board[1][0] = 0,board[1][10] = 1,board[1][11] = 0,board[1][12] = 0,board[1][13] = 0,board[1][14] = 0,board[1][15] = 1,board[1][16] = 0,board[1][17] = 0,board[1][18] = 0,board[1][19] = 0,board[1][1] = 0,board[1][20] = 0,board[1][21] = 0,board[1][22] = 0,board[1][23] = 0,board[1][24] = 0,board[1][2] = 0,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 1,board[2][0] = 0,board[2][10] = 0,board[2][11] = 0,board[2][12] = 0,board[2][13] = 0,board[2][14] = 1,board[2][15] = 1,board[2][16] = 1,board[2][17] = 0,board[2][18] = 0,board[2][19] = 0,board[2][1] = 0,board[2][20] = 0,board[2][21] = 0,board[2][22] = 0,board[2][23] = 0,board[2][24] = 0,board[2][2] = 0,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 1,board[2][9] = 1,board[3][0] = 0,board[3][10] = 0,board[3][11] = 0,board[3][12] = 0,board[3][13] = 1,board[3][14] = 1,board[3][15] = 1,board[3][16] = 1,board[3][17] = 0,board[3][18] = 0,board[3][19] = 0,board[3][1] = 0,board[3][20] = 0,board[3][21] = 0,board[3][22] = 0,board[3][23] = 0,board[3][24] = 0,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 0,board[3][6] = 0,board[3][7] = 1,board[3][8] = 1,board[3][9] = 0,board[4][0] = 0,board[4][10] = 0,board[4][11] = 1,board[4][12] = 1,board[4][13] = 1,board[4][14] = 1,board[4][15] = 1,board[4][16] = 0,board[4][17] = 0,board[4][18] = 0,board[4][19] = 0,board[4][1] = 0,board[4][20] = 0,board[4][21] = 0,board[4][22] = 0,board[4][23] = 0,board[4][24] = 0,board[4][2] = 0,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 1,board[4][7] = 1,board[4][8] = 0,board[4][9] = 0,board[5][0] = 0,board[5][10] = 1,board[5][11] = 1,board[5][12] = 1,board[5][13] = 1,board[5][14] = 1,board[5][15] = 0,board[5][16] = 0,board[5][17] = 0,board[5][18] = 0,board[5][19] = 0,board[5][1] = 0,board[5][20] = 0,board[5][21] = 0,board[5][22] = 0,board[5][23] = 0,board[5][24] = 0,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 1,board[5][6] = 1,board[5][7] = 0,board[5][8] = 0,board[5][9] = 1,board[6][0] = 0,board[6][10] = 1,board[6][11] = 1,board[6][12] = 1,board[6][13] = 0,board[6][14] = 0,board[6][15] = 0,board[6][16] = 0,board[6][17] = 0,board[6][18] = 0,board[6][19] = 0,board[6][1] = 0,board[6][20] = 0,board[6][21] = 0,board[6][22] = 0,board[6][23] = 0,board[6][24] = 0,board[6][2] = 0,board[6][3] = 1,board[6][4] = 1,board[6][5] = 1,board[6][6] = 1,board[6][7] = 1,board[6][8] = 1,board[6][9] = 1,board[7][0] = 0,board[7][10] = 1,board[7][11] = 0,board[7][12] = 0,board[7][13] = 0,board[7][14] = 1,board[7][15] = 1,board[7][16] = 1,board[7][17] = 1,board[7][18] = 1,board[7][19] = 1,board[7][1] = 1,board[7][20] = 1,board[7][21] = 1,board[7][22] = 0,board[7][23] = 0,board[7][24] = 0,board[7][2] = 1,board[7][3] = 0,board[7][4] = 0,board[7][5] = 0,board[7][6] = 1,board[7][7] = 1,board[7][8] = 1,board[7][9] = 1,board[8][0] = 1,board[8][10] = 0,board[8][11] = 0,board[8][12] = 1,board[8][13] = 1,board[8][14] = 1,board[8][15] = 1,board[8][16] = 1,board[8][17] = 1,board[8][18] = 1,board[8][19] = 1,board[8][1] = 1,board[8][20] = 1,board[8][21] = 1,board[8][22] = 1,board[8][23] = 0,board[8][24] = 0,board[8][2] = 0,board[8][3] = 0,board[8][4] = 1,board[8][5] = 0,board[8][6] = 0,board[8][7] = 1,board[8][8] = 1,board[8][9] = 0,board[9][0] = 1,board[9][10] = 1,board[9][11] = 1,board[9][12] = 1,board[9][13] = 1,board[9][14] = 1,board[9][15] = 1,board[9][16] = 0,board[9][17] = 0,board[9][18] = 0,board[9][19] = 1,board[9][1] = 1,board[9][20] = 1,board[9][21] = 1,board[9][22] = 1,board[9][23] = 1,board[9][24] = 0,board[9][2] = 0,board[9][3] = 0,board[9][4] = 0,board[9][5] = 0,board[9][6] = 0,board[9][7] = 1,board[9][8] = 1,board[9][9] = 1]", 117 "[board[0][0] = 1,board[0][10] = 0,board[0][11] = 1,board[0][12] = 1,board[0][13] = 1,board[0][14] = 1,board[0][15] = 1,board[0][16] = 1,board[0][17] = 1,board[0][18] = 1,board[0][19] = 1,board[0][1] = 1,board[0][20] = 1,board[0][21] = 1,board[0][22] = 1,board[0][23] = 1,board[0][24] = 1,board[0][2] = 1,board[0][3] = 1,board[0][4] = 1,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 1,board[10][10] = 0,board[10][11] = 0,board[10][12] = 0,board[10][13] = 0,board[10][14] = 0,board[10][15] = 0,board[10][16] = 0,board[10][17] = 0,board[10][18] = 1,board[10][19] = 0,board[10][1] = 1,board[10][20] = 0,board[10][21] = 0,board[10][22] = 0,board[10][23] = 1,board[10][24] = 0,board[10][2] = 1,board[10][3] = 1,board[10][4] = 1,board[10][5] = 1,board[10][6] = 1,board[10][7] = 1,board[10][8] = 1,board[10][9] = 0,board[11][0] = 0,board[11][10] = 0,board[11][11] = 0,board[11][12] = 0,board[11][13] = 0,board[11][14] = 0,board[11][15] = 0,board[11][16] = 0,board[11][17] = 1,board[11][18] = 1,board[11][19] = 0,board[11][1] = 1,board[11][20] = 0,board[11][21] = 1,board[11][22] = 1,board[11][23] = 1,board[11][24] = 0,board[11][2] = 0,board[11][3] = 1,board[11][4] = 1,board[11][5] = 1,board[11][6] = 1,board[11][7] = 1,board[11][8] = 1,board[11][9] = 1,board[12][0] = 0,board[12][10] = 1,board[12][11] = 1,board[12][12] = 1,board[12][13] = 1,board[12][14] = 1,board[12][15] = 1,board[12][16] = 1,board[12][17] = 1,board[12][18] = 1,board[12][19] = 1,board[12][1] = 0,board[12][20] = 0,board[12][21] = 0,board[12][22] = 1,board[12][23] = 0,board[12][24] = 0,board[12][2] = 0,board[12][3] = 0,board[12][4] = 1,board[12][5] = 0,board[12][6] = 0,board[12][7] = 0,board[12][8] = 0,board[12][9] = 1,board[13][0] = 0,board[13][10] = 0,board[13][11] = 0,board[13][12] = 0,board[13][13] = 1,board[13][14] = 0,board[13][15] = 0,board[13][16] = 0,board[13][17] = 0,board[13][18] = 0,board[13][19] = 1,board[13][1] = 0,board[13][20] = 1,board[13][21] = 1,board[13][22] = 1,board[13][23] = 0,board[13][24] = 0,board[13][2] = 0,board[13][3] = 0,board[13][4] = 1,board[13][5] = 1,board[13][6] = 0,board[13][7] = 0,board[13][8] = 1,board[13][9] = 1,board[14][0] = 1,board[14][10] = 0,board[14][11] = 0,board[14][12] = 0,board[14][13] = 1,board[14][14] = 0,board[14][15] = 1,board[14][16] = 0,board[14][17] = 0,board[14][18] = 0,board[14][19] = 0,board[14][1] = 0,board[14][20] = 1,board[14][21] = 1,board[14][22] = 0,board[14][23] = 0,board[14][24] = 0,board[14][2] = 0,board[14][3] = 0,board[14][4] = 0,board[14][5] = 1,board[14][6] = 1,board[14][7] = 1,board[14][8] = 1,board[14][9] = 0,board[15][0] = 1,board[15][10] = 0,board[15][11] = 0,board[15][12] = 0,board[15][13] = 1,board[15][14] = 1,board[15][15] = 0,board[15][16] = 0,board[15][17] = 0,board[15][18] = 0,board[15][19] = 0,board[15][1] = 0,board[15][20] = 0,board[15][21] = 1,board[15][22] = 0,board[15][23] = 0,board[15][24] = 0,board[15][2] = 0,board[15][3] = 0,board[15][4] = 0,board[15][5] = 0,board[15][6] = 1,board[15][7] = 1,board[15][8] = 0,board[15][9] = 0,board[16][0] = 1,board[16][10] = 0,board[16][11] = 0,board[16][12] = 0,board[16][13] = 1,board[16][14] = 1,board[16][15] = 1,board[16][16] = 0,board[16][17] = 0,board[16][18] = 0,board[16][19] = 0,board[16][1] = 0,board[16][20] = 0,board[16][21] = 1,board[16][22] = 0,board[16][23] = 0,board[16][24] = 0,board[16][2] = 0,board[16][3] = 0,board[16][4] = 0,board[16][5] = 0,board[16][6] = 0,board[16][7] = 1,board[16][8] = 0,board[16][9] = 0,board[17][0] = 1,board[17][10] = 0,board[17][11] = 0,board[17][12] = 1,board[17][13] = 1,board[17][14] = 1,board[17][15] = 1,board[17][16] = 0,board[17][17] = 0,board[17][18] = 0,board[17][19] = 0,board[17][1] = 1,board[17][20] = 0,board[17][21] = 1,board[17][22] = 0,board[17][23] = 0,board[17][24] = 0,board[17][2] = 0,board[17][3] = 0,board[17][4] = 0,board[17][5] = 0,board[17][6] = 0,board[17][7] = 0,board[17][8] = 0,board[17][9] = 0,board[18][0] = 1,board[18][10] = 0,board[18][11] = 1,board[18][12] = 1,board[18][13] = 0,board[18][14] = 1,board[18][15] = 1,board[18][16] = 0,board[18][17] = 0,board[18][18] = 0,board[18][19] = 0,board[18][1] = 1,board[18][20] = 1,board[18][21] = 1,board[18][22] = 0,board[18][23] = 0,board[18][24] = 0,board[18][2] = 0,board[18][3] = 0,board[18][4] = 0,board[18][5] = 0,board[18][6] = 0,board[18][7] = 0,board[18][8] = 0,board[18][9] = 0,board[19][0] = 1,board[19][10] = 1,board[19][11] = 1,board[19][12] = 0,board[19][13] = 0,board[19][14] = 1,board[19][15] = 0,board[19][16] = 0,board[19][17] = 0,board[19][18] = 0,board[19][19] = 1,board[19][1] = 1,board[19][20] = 1,board[19][21] = 0,board[19][22] = 0,board[19][23] = 0,board[19][24] = 0,board[19][2] = 1,board[19][3] = 0,board[19][4] = 0,board[19][5] = 0,board[19][6] = 0,board[19][7] = 0,board[19][8] = 0,board[19][9] = 0,board[1][0] = 1,board[1][10] = 0,board[1][11] = 0,board[1][12] = 1,board[1][13] = 1,board[1][14] = 0,board[1][15] = 0,board[1][16] = 0,board[1][17] = 1,board[1][18] = 1,board[1][19] = 1,board[1][1] = 1,board[1][20] = 1,board[1][21] = 1,board[1][22] = 1,board[1][23] = 1,board[1][24] = 1,board[1][2] = 1,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[20][0] = 1,board[20][10] = 1,board[20][11] = 0,board[20][12] = 0,board[20][13] = 1,board[20][14] = 1,board[20][15] = 0,board[20][16] = 0,board[20][17] = 0,board[20][18] = 1,board[20][19] = 1,board[20][1] = 1,board[20][20] = 0,board[20][21] = 0,board[20][22] = 0,board[20][23] = 0,board[20][24] = 1,board[20][2] = 1,board[20][3] = 0,board[20][4] = 0,board[20][5] = 0,board[20][6] = 0,board[20][7] = 0,board[20][8] = 1,board[20][9] = 1,board[21][0] = 1,board[21][10] = 0,board[21][11] = 1,board[21][12] = 1,board[21][13] = 1,board[21][14] = 0,board[21][15] = 0,board[21][16] = 0,board[21][17] = 0,board[21][18] = 1,board[21][19] = 0,board[21][1] = 1,board[21][20] = 0,board[21][21] = 0,board[21][22] = 0,board[21][23] = 1,board[21][24] = 1,board[21][2] = 1,board[21][3] = 1,board[21][4] = 0,board[21][5] = 0,board[21][6] = 0,board[21][7] = 0,board[21][8] = 1,board[21][9] = 0,board[22][0] = 1,board[22][10] = 0,board[22][11] = 1,board[22][12] = 0,board[22][13] = 0,board[22][14] = 0,board[22][15] = 0,board[22][16] = 0,board[22][17] = 1,board[22][18] = 1,board[22][19] = 0,board[22][1] = 1,board[22][20] = 0,board[22][21] = 0,board[22][22] = 1,board[22][23] = 1,board[22][24] = 1,board[22][2] = 1,board[22][3] = 1,board[22][4] = 0,board[22][5] = 0,board[22][6] = 0,board[22][7] = 0,board[22][8] = 1,board[22][9] = 0,board[23][0] = 1,board[23][10] = 1,board[23][11] = 1,board[23][12] = 0,board[23][13] = 0,board[23][14] = 0,board[23][15] = 0,board[23][16] = 1,board[23][17] = 1,board[23][18] = 0,board[23][19] = 0,board[23][1] = 1,board[23][20] = 1,board[23][21] = 1,board[23][22] = 1,board[23][23] = 1,board[23][24] = 1,board[23][2] = 1,board[23][3] = 1,board[23][4] = 1,board[23][5] = 0,board[23][6] = 0,board[23][7] = 0,board[23][8] = 1,board[23][9] = 1,board[24][0] = 1,board[24][10] = 0,board[24][11] = 1,board[24][12] = 1,board[24][13] = 1,board[24][14] = 1,board[24][15] = 1,board[24][16] = 1,board[24][17] = 1,board[24][18] = 1,board[24][19] = 1,board[24][1] = 1,board[24][20] = 1,board[24][21] = 1,board[24][22] = 1,board[24][23] = 1,board[24][24] = 1,board[24][2] = 1,board[24][3] = 1,board[24][4] = 1,board[24][5] = 1,board[24][6] = 0,board[24][7] = 0,board[24][8] = 0,board[24][9] = 0,board[2][0] = 1,board[2][10] = 0,board[2][11] = 0,board[2][12] = 1,board[2][13] = 0,board[2][14] = 0,board[2][15] = 0,board[2][16] = 0,board[2][17] = 0,board[2][18] = 1,board[2][19] = 1,board[2][1] = 1,board[2][20] = 1,board[2][21] = 1,board[2][22] = 1,board[2][23] = 1,board[2][24] = 1,board[2][2] = 0,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 0,board[3][0] = 1,board[3][10] = 0,board[3][11] = 1,board[3][12] = 1,board[3][13] = 0,board[3][14] = 0,board[3][15] = 0,board[3][16] = 0,board[3][17] = 0,board[3][18] = 1,board[3][19] = 1,board[3][1] = 0,board[3][20] = 0,board[3][21] = 0,board[3][22] = 0,board[3][23] = 0,board[3][24] = 1,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 0,board[3][6] = 0,board[3][7] = 0,board[3][8] = 0,board[3][9] = 0,board[4][0] = 1,board[4][10] = 0,board[4][11] = 1,board[4][12] = 0,board[4][13] = 1,board[4][14] = 0,board[4][15] = 1,board[4][16] = 0,board[4][17] = 0,board[4][18] = 0,board[4][19] = 1,board[4][1] = 0,board[4][20] = 0,board[4][21] = 0,board[4][22] = 0,board[4][23] = 0,board[4][24] = 0,board[4][2] = 0,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 0,board[4][7] = 1,board[4][8] = 0,board[4][9] = 0,board[5][0] = 0,board[5][10] = 0,board[5][11] = 1,board[5][12] = 0,board[5][13] = 1,board[5][14] = 0,board[5][15] = 1,board[5][16] = 0,board[5][17] = 0,board[5][18] = 0,board[5][19] = 1,board[5][1] = 0,board[5][20] = 1,board[5][21] = 1,board[5][22] = 1,board[5][23] = 1,board[5][24] = 0,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 0,board[5][6] = 1,board[5][7] = 1,board[5][8] = 0,board[5][9] = 0,board[6][0] = 0,board[6][10] = 0,board[6][11] = 1,board[6][12] = 1,board[6][13] = 0,board[6][14] = 0,board[6][15] = 0,board[6][16] = 0,board[6][17] = 0,board[6][18] = 1,board[6][19] = 1,board[6][1] = 0,board[6][20] = 0,board[6][21] = 0,board[6][22] = 0,board[6][23] = 1,board[6][24] = 0,board[6][2] = 0,board[6][3] = 0,board[6][4] = 0,board[6][5] = 1,board[6][6] = 1,board[6][7] = 1,board[6][8] = 1,board[6][9] = 0,board[7][0] = 0,board[7][10] = 0,board[7][11] = 0,board[7][12] = 1,board[7][13] = 1,board[7][14] = 0,board[7][15] = 0,board[7][16] = 0,board[7][17] = 1,board[7][18] = 1,board[7][19] = 0,board[7][1] = 0,board[7][20] = 1,board[7][21] = 1,board[7][22] = 1,board[7][23] = 1,board[7][24] = 1,board[7][2] = 0,board[7][3] = 1,board[7][4] = 1,board[7][5] = 1,board[7][6] = 1,board[7][7] = 0,board[7][8] = 1,board[7][9] = 1,board[8][0] = 0,board[8][10] = 1,board[8][11] = 1,board[8][12] = 0,board[8][13] = 1,board[8][14] = 1,board[8][15] = 1,board[8][16] = 1,board[8][17] = 1,board[8][18] = 1,board[8][19] = 1,board[8][1] = 0,board[8][20] = 1,board[8][21] = 0,board[8][22] = 0,board[8][23] = 0,board[8][24] = 1,board[8][2] = 0,board[8][3] = 1,board[8][4] = 0,board[8][5] = 0,board[8][6] = 1,board[8][7] = 1,board[8][8] = 1,board[8][9] = 1,board[9][0] = 0,board[9][10] = 0,board[9][11] = 1,board[9][12] = 1,board[9][13] = 1,board[9][14] = 0,board[9][15] = 0,board[9][16] = 0,board[9][17] = 1,board[9][18] = 1,board[9][19] = 1,board[9][1] = 1,board[9][20] = 0,board[9][21] = 0,board[9][22] = 1,board[9][23] = 1,board[9][24] = 1,board[9][2] = 0,board[9][3] = 1,board[9][4] = 1,board[9][5] = 0,board[9][6] = 0,board[9][7] = 0,board[9][8] = 1,board[9][9] = 0]", 118 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 0,board[0][13] = 1,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 0,board[10][10] = 1,board[10][11] = 1,board[10][12] = 0,board[10][13] = 0,board[10][14] = 0,board[10][15] = 0,board[10][16] = 0,board[10][17] = 0,board[10][18] = 0,board[10][19] = 0,board[10][1] = 0,board[10][2] = 0,board[10][3] = 0,board[10][4] = 0,board[10][5] = 0,board[10][6] = 1,board[10][7] = 1,board[10][8] = 1,board[10][9] = 1,board[11][0] = 0,board[11][10] = 1,board[11][11] = 1,board[11][12] = 1,board[11][13] = 0,board[11][14] = 0,board[11][15] = 0,board[11][16] = 0,board[11][17] = 0,board[11][18] = 0,board[11][19] = 0,board[11][1] = 0,board[11][2] = 0,board[11][3] = 0,board[11][4] = 0,board[11][5] = 0,board[11][6] = 1,board[11][7] = 1,board[11][8] = 1,board[11][9] = 1,board[12][0] = 0,board[12][10] = 1,board[12][11] = 1,board[12][12] = 1,board[12][13] = 1,board[12][14] = 0,board[12][15] = 0,board[12][16] = 0,board[12][17] = 0,board[12][18] = 0,board[12][19] = 0,board[12][1] = 0,board[12][2] = 0,board[12][3] = 1,board[12][4] = 1,board[12][5] = 0,board[12][6] = 0,board[12][7] = 1,board[12][8] = 1,board[12][9] = 1,board[13][0] = 0,board[13][10] = 1,board[13][11] = 1,board[13][12] = 1,board[13][13] = 1,board[13][14] = 0,board[13][15] = 0,board[13][16] = 0,board[13][17] = 0,board[13][18] = 0,board[13][19] = 0,board[13][1] = 0,board[13][2] = 0,board[13][3] = 1,board[13][4] = 0,board[13][5] = 0,board[13][6] = 0,board[13][7] = 1,board[13][8] = 1,board[13][9] = 1,board[14][0] = 0,board[14][10] = 1,board[14][11] = 1,board[14][12] = 1,board[14][13] = 1,board[14][14] = 1,board[14][15] = 0,board[14][16] = 0,board[14][17] = 0,board[14][18] = 0,board[14][19] = 0,board[14][1] = 0,board[14][2] = 1,board[14][3] = 1,board[14][4] = 0,board[14][5] = 0,board[14][6] = 0,board[14][7] = 1,board[14][8] = 1,board[14][9] = 1,board[15][0] = 0,board[15][10] = 1,board[15][11] = 1,board[15][12] = 1,board[15][13] = 1,board[15][14] = 1,board[15][15] = 0,board[15][16] = 0,board[15][17] = 0,board[15][18] = 0,board[15][19] = 0,board[15][1] = 1,board[15][2] = 1,board[15][3] = 1,board[15][4] = 0,board[15][5] = 0,board[15][6] = 0,board[15][7] = 1,board[15][8] = 1,board[15][9] = 1,board[16][0] = 0,board[16][10] = 1,board[16][11] = 1,board[16][12] = 1,board[16][13] = 1,board[16][14] = 1,board[16][15] = 0,board[16][16] = 0,board[16][17] = 0,board[16][18] = 0,board[16][19] = 0,board[16][1] = 1,board[16][2] = 1,board[16][3] = 1,board[16][4] = 1,board[16][5] = 0,board[16][6] = 1,board[16][7] = 1,board[16][8] = 1,board[16][9] = 1,board[17][0] = 1,board[17][10] = 1,board[17][11] = 1,board[17][12] = 1,board[17][13] = 1,board[17][14] = 1,board[17][15] = 0,board[17][16] = 0,board[17][17] = 0,board[17][18] = 0,board[17][19] = 0,board[17][1] = 1,board[17][2] = 1,board[17][3] = 1,board[17][4] = 1,board[17][5] = 1,board[17][6] = 1,board[17][7] = 1,board[17][8] = 1,board[17][9] = 1,board[18][0] = 1,board[18][10] = 1,board[18][11] = 1,board[18][12] = 1,board[18][13] = 1,board[18][14] = 0,board[18][15] = 0,board[18][16] = 0,board[18][17] = 0,board[18][18] = 0,board[18][19] = 0,board[18][1] = 1,board[18][2] = 1,board[18][3] = 1,board[18][4] = 1,board[18][5] = 1,board[18][6] = 1,board[18][7] = 1,board[18][8] = 1,board[18][9] = 1,board[19][0] = 1,board[19][10] = 1,board[19][11] = 1,board[19][12] = 1,board[19][13] = 1,board[19][14] = 0,board[19][15] = 0,board[19][16] = 0,board[19][17] = 0,board[19][18] = 0,board[19][19] = 0,board[19][1] = 1,board[19][2] = 1,board[19][3] = 1,board[19][4] = 1,board[19][5] = 0,board[19][6] = 1,board[19][7] = 1,board[19][8] = 1,board[19][9] = 1,board[1][0] = 0,board[1][10] = 0,board[1][11] = 1,board[1][12] = 1,board[1][13] = 1,board[1][14] = 0,board[1][15] = 0,board[1][16] = 0,board[1][17] = 0,board[1][18] = 0,board[1][19] = 0,board[1][1] = 0,board[1][2] = 0,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[20][0] = 0,board[20][10] = 1,board[20][11] = 1,board[20][12] = 0,board[20][13] = 0,board[20][14] = 0,board[20][15] = 0,board[20][16] = 0,board[20][17] = 0,board[20][18] = 0,board[20][19] = 0,board[20][1] = 1,board[20][2] = 1,board[20][3] = 1,board[20][4] = 0,board[20][5] = 0,board[20][6] = 1,board[20][7] = 1,board[20][8] = 1,board[20][9] = 1,board[21][0] = 0,board[21][10] = 0,board[21][11] = 0,board[21][12] = 0,board[21][13] = 0,board[21][14] = 0,board[21][15] = 0,board[21][16] = 0,board[21][17] = 0,board[21][18] = 0,board[21][19] = 0,board[21][1] = 1,board[21][2] = 1,board[21][3] = 0,board[21][4] = 0,board[21][5] = 1,board[21][6] = 1,board[21][7] = 1,board[21][8] = 1,board[21][9] = 1,board[22][0] = 0,board[22][10] = 0,board[22][11] = 1,board[22][12] = 1,board[22][13] = 1,board[22][14] = 1,board[22][15] = 0,board[22][16] = 0,board[22][17] = 0,board[22][18] = 0,board[22][19] = 0,board[22][1] = 0,board[22][2] = 1,board[22][3] = 0,board[22][4] = 1,board[22][5] = 1,board[22][6] = 1,board[22][7] = 1,board[22][8] = 1,board[22][9] = 0,board[23][0] = 0,board[23][10] = 1,board[23][11] = 1,board[23][12] = 0,board[23][13] = 0,board[23][14] = 1,board[23][15] = 1,board[23][16] = 0,board[23][17] = 0,board[23][18] = 0,board[23][19] = 0,board[23][1] = 0,board[23][2] = 0,board[23][3] = 0,board[23][4] = 1,board[23][5] = 1,board[23][6] = 1,board[23][7] = 1,board[23][8] = 0,board[23][9] = 0,board[24][0] = 0,board[24][10] = 1,board[24][11] = 0,board[24][12] = 0,board[24][13] = 0,board[24][14] = 0,board[24][15] = 1,board[24][16] = 1,board[24][17] = 0,board[24][18] = 0,board[24][19] = 0,board[24][1] = 0,board[24][2] = 0,board[24][3] = 0,board[24][4] = 1,board[24][5] = 1,board[24][6] = 1,board[24][7] = 1,board[24][8] = 0,board[24][9] = 0,board[25][0] = 0,board[25][10] = 1,board[25][11] = 1,board[25][12] = 0,board[25][13] = 1,board[25][14] = 0,board[25][15] = 0,board[25][16] = 1,board[25][17] = 0,board[25][18] = 0,board[25][19] = 0,board[25][1] = 0,board[25][2] = 0,board[25][3] = 0,board[25][4] = 1,board[25][5] = 1,board[25][6] = 1,board[25][7] = 1,board[25][8] = 0,board[25][9] = 0,board[26][0] = 0,board[26][10] = 0,board[26][11] = 1,board[26][12] = 1,board[26][13] = 1,board[26][14] = 0,board[26][15] = 0,board[26][16] = 1,board[26][17] = 0,board[26][18] = 0,board[26][19] = 0,board[26][1] = 0,board[26][2] = 0,board[26][3] = 0,board[26][4] = 0,board[26][5] = 1,board[26][6] = 1,board[26][7] = 1,board[26][8] = 1,board[26][9] = 0,board[27][0] = 0,board[27][10] = 0,board[27][11] = 0,board[27][12] = 0,board[27][13] = 0,board[27][14] = 0,board[27][15] = 1,board[27][16] = 1,board[27][17] = 0,board[27][18] = 0,board[27][19] = 0,board[27][1] = 0,board[27][2] = 0,board[27][3] = 0,board[27][4] = 0,board[27][5] = 1,board[27][6] = 1,board[27][7] = 1,board[27][8] = 1,board[27][9] = 1,board[28][0] = 0,board[28][10] = 1,board[28][11] = 1,board[28][12] = 1,board[28][13] = 1,board[28][14] = 1,board[28][15] = 1,board[28][16] = 0,board[28][17] = 0,board[28][18] = 0,board[28][19] = 0,board[28][1] = 0,board[28][2] = 0,board[28][3] = 0,board[28][4] = 0,board[28][5] = 0,board[28][6] = 1,board[28][7] = 1,board[28][8] = 1,board[28][9] = 1,board[29][0] = 0,board[29][10] = 1,board[29][11] = 1,board[29][12] = 1,board[29][13] = 1,board[29][14] = 1,board[29][15] = 0,board[29][16] = 0,board[29][17] = 0,board[29][18] = 0,board[29][19] = 0,board[29][1] = 0,board[29][2] = 0,board[29][3] = 0,board[29][4] = 0,board[29][5] = 0,board[29][6] = 0,board[29][7] = 0,board[29][8] = 0,board[29][9] = 1,board[2][0] = 0,board[2][10] = 1,board[2][11] = 1,board[2][12] = 1,board[2][13] = 1,board[2][14] = 1,board[2][15] = 0,board[2][16] = 0,board[2][17] = 0,board[2][18] = 0,board[2][19] = 0,board[2][1] = 0,board[2][2] = 0,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 0,board[3][0] = 0,board[3][10] = 1,board[3][11] = 1,board[3][12] = 1,board[3][13] = 1,board[3][14] = 1,board[3][15] = 1,board[3][16] = 0,board[3][17] = 0,board[3][18] = 0,board[3][19] = 0,board[3][1] = 0,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 0,board[3][6] = 0,board[3][7] = 0,board[3][8] = 0,board[3][9] = 1,board[4][0] = 0,board[4][10] = 1,board[4][11] = 1,board[4][12] = 1,board[4][13] = 1,board[4][14] = 1,board[4][15] = 1,board[4][16] = 1,board[4][17] = 0,board[4][18] = 0,board[4][19] = 0,board[4][1] = 0,board[4][2] = 0,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 0,board[4][7] = 0,board[4][8] = 1,board[4][9] = 1,board[5][0] = 0,board[5][10] = 1,board[5][11] = 1,board[5][12] = 0,board[5][13] = 1,board[5][14] = 1,board[5][15] = 1,board[5][16] = 1,board[5][17] = 1,board[5][18] = 0,board[5][19] = 0,board[5][1] = 0,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 0,board[5][6] = 0,board[5][7] = 1,board[5][8] = 1,board[5][9] = 1,board[6][0] = 0,board[6][10] = 1,board[6][11] = 0,board[6][12] = 0,board[6][13] = 0,board[6][14] = 1,board[6][15] = 1,board[6][16] = 1,board[6][17] = 1,board[6][18] = 1,board[6][19] = 0,board[6][1] = 0,board[6][2] = 0,board[6][3] = 0,board[6][4] = 0,board[6][5] = 0,board[6][6] = 0,board[6][7] = 1,board[6][8] = 1,board[6][9] = 1,board[7][0] = 0,board[7][10] = 1,board[7][11] = 0,board[7][12] = 0,board[7][13] = 0,board[7][14] = 0,board[7][15] = 0,board[7][16] = 0,board[7][17] = 0,board[7][18] = 1,board[7][19] = 1,board[7][1] = 0,board[7][2] = 0,board[7][3] = 0,board[7][4] = 0,board[7][5] = 0,board[7][6] = 1,board[7][7] = 1,board[7][8] = 1,board[7][9] = 1,board[8][0] = 0,board[8][10] = 1,board[8][11] = 0,board[8][12] = 0,board[8][13] = 0,board[8][14] = 0,board[8][15] = 0,board[8][16] = 0,board[8][17] = 0,board[8][18] = 0,board[8][19] = 0,board[8][1] = 0,board[8][2] = 0,board[8][3] = 0,board[8][4] = 0,board[8][5] = 0,board[8][6] = 1,board[8][7] = 1,board[8][8] = 1,board[8][9] = 1,board[9][0] = 0,board[9][10] = 1,board[9][11] = 0,board[9][12] = 0,board[9][13] = 0,board[9][14] = 0,board[9][15] = 0,board[9][16] = 0,board[9][17] = 0,board[9][18] = 0,board[9][19] = 0,board[9][1] = 0,board[9][2] = 0,board[9][3] = 0,board[9][4] = 0,board[9][5] = 0,board[9][6] = 1,board[9][7] = 1,board[9][8] = 1,board[9][9] = 1]", 119 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 0,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 1,board[0][19] = 1,board[0][1] = 0,board[0][2] = 0,board[0][3] = 1,board[0][4] = 1,board[0][5] = 1,board[0][6] = 1,board[0][7] = 1,board[0][8] = 0,board[0][9] = 0,board[10][0] = 1,board[10][10] = 1,board[10][11] = 1,board[10][12] = 1,board[10][13] = 1,board[10][14] = 1,board[10][15] = 1,board[10][16] = 1,board[10][17] = 1,board[10][18] = 1,board[10][19] = 0,board[10][1] = 1,board[10][2] = 0,board[10][3] = 0,board[10][4] = 0,board[10][5] = 0,board[10][6] = 0,board[10][7] = 0,board[10][8] = 0,board[10][9] = 1,board[11][0] = 0,board[11][10] = 0,board[11][11] = 0,board[11][12] = 1,board[11][13] = 1,board[11][14] = 1,board[11][15] = 1,board[11][16] = 1,board[11][17] = 1,board[11][18] = 1,board[11][19] = 0,board[11][1] = 1,board[11][2] = 1,board[11][3] = 1,board[11][4] = 0,board[11][5] = 0,board[11][6] = 0,board[11][7] = 0,board[11][8] = 0,board[11][9] = 0,board[12][0] = 0,board[12][10] = 1,board[12][11] = 1,board[12][12] = 1,board[12][13] = 1,board[12][14] = 1,board[12][15] = 1,board[12][16] = 1,board[12][17] = 1,board[12][18] = 1,board[12][19] = 0,board[12][1] = 0,board[12][2] = 0,board[12][3] = 1,board[12][4] = 1,board[12][5] = 1,board[12][6] = 1,board[12][7] = 1,board[12][8] = 1,board[12][9] = 1,board[13][0] = 0,board[13][10] = 1,board[13][11] = 1,board[13][12] = 1,board[13][13] = 1,board[13][14] = 1,board[13][15] = 1,board[13][16] = 1,board[13][17] = 1,board[13][18] = 0,board[13][19] = 0,board[13][1] = 0,board[13][2] = 0,board[13][3] = 0,board[13][4] = 0,board[13][5] = 0,board[13][6] = 0,board[13][7] = 0,board[13][8] = 1,board[13][9] = 1,board[14][0] = 0,board[14][10] = 1,board[14][11] = 1,board[14][12] = 1,board[14][13] = 1,board[14][14] = 1,board[14][15] = 1,board[14][16] = 1,board[14][17] = 1,board[14][18] = 0,board[14][19] = 0,board[14][1] = 0,board[14][2] = 0,board[14][3] = 0,board[14][4] = 0,board[14][5] = 1,board[14][6] = 1,board[14][7] = 1,board[14][8] = 1,board[14][9] = 0,board[15][0] = 0,board[15][10] = 1,board[15][11] = 1,board[15][12] = 1,board[15][13] = 1,board[15][14] = 1,board[15][15] = 1,board[15][16] = 0,board[15][17] = 1,board[15][18] = 1,board[15][19] = 1,board[15][1] = 0,board[15][2] = 0,board[15][3] = 0,board[15][4] = 1,board[15][5] = 0,board[15][6] = 1,board[15][7] = 0,board[15][8] = 1,board[15][9] = 0,board[16][0] = 0,board[16][10] = 0,board[16][11] = 1,board[16][12] = 1,board[16][13] = 1,board[16][14] = 1,board[16][15] = 1,board[16][16] = 0,board[16][17] = 0,board[16][18] = 0,board[16][19] = 1,board[16][1] = 0,board[16][2] = 0,board[16][3] = 1,board[16][4] = 1,board[16][5] = 0,board[16][6] = 1,board[16][7] = 0,board[16][8] = 1,board[16][9] = 1,board[17][0] = 0,board[17][10] = 1,board[17][11] = 0,board[17][12] = 1,board[17][13] = 0,board[17][14] = 0,board[17][15] = 1,board[17][16] = 1,board[17][17] = 0,board[17][18] = 0,board[17][19] = 0,board[17][1] = 0,board[17][2] = 1,board[17][3] = 0,board[17][4] = 1,board[17][5] = 0,board[17][6] = 1,board[17][7] = 1,board[17][8] = 0,board[17][9] = 1,board[18][0] = 0,board[18][10] = 0,board[18][11] = 0,board[18][12] = 1,board[18][13] = 1,board[18][14] = 0,board[18][15] = 0,board[18][16] = 1,board[18][17] = 1,board[18][18] = 1,board[18][19] = 0,board[18][1] = 0,board[18][2] = 1,board[18][3] = 0,board[18][4] = 1,board[18][5] = 1,board[18][6] = 0,board[18][7] = 1,board[18][8] = 0,board[18][9] = 1,board[19][0] = 0,board[19][10] = 0,board[19][11] = 0,board[19][12] = 0,board[19][13] = 1,board[19][14] = 1,board[19][15] = 1,board[19][16] = 0,board[19][17] = 0,board[19][18] = 1,board[19][19] = 0,board[19][1] = 0,board[19][2] = 0,board[19][3] = 1,board[19][4] = 1,board[19][5] = 1,board[19][6] = 1,board[19][7] = 1,board[19][8] = 1,board[19][9] = 0,board[1][0] = 0,board[1][10] = 0,board[1][11] = 0,board[1][12] = 1,board[1][13] = 1,board[1][14] = 1,board[1][15] = 1,board[1][16] = 0,board[1][17] = 1,board[1][18] = 1,board[1][19] = 0,board[1][1] = 0,board[1][2] = 0,board[1][3] = 1,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 1,board[1][8] = 1,board[1][9] = 0,board[2][0] = 0,board[2][10] = 0,board[2][11] = 0,board[2][12] = 0,board[2][13] = 0,board[2][14] = 0,board[2][15] = 1,board[2][16] = 0,board[2][17] = 1,board[2][18] = 0,board[2][19] = 0,board[2][1] = 0,board[2][2] = 0,board[2][3] = 1,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 1,board[2][9] = 0,board[3][0] = 0,board[3][10] = 0,board[3][11] = 0,board[3][12] = 0,board[3][13] = 1,board[3][14] = 1,board[3][15] = 1,board[3][16] = 1,board[3][17] = 1,board[3][18] = 0,board[3][19] = 0,board[3][1] = 0,board[3][2] = 0,board[3][3] = 1,board[3][4] = 0,board[3][5] = 0,board[3][6] = 0,board[3][7] = 0,board[3][8] = 0,board[3][9] = 1,board[4][0] = 0,board[4][10] = 1,board[4][11] = 0,board[4][12] = 1,board[4][13] = 1,board[4][14] = 1,board[4][15] = 0,board[4][16] = 0,board[4][17] = 1,board[4][18] = 1,board[4][19] = 0,board[4][1] = 0,board[4][2] = 0,board[4][3] = 1,board[4][4] = 0,board[4][5] = 0,board[4][6] = 0,board[4][7] = 0,board[4][8] = 0,board[4][9] = 1,board[5][0] = 1,board[5][10] = 1,board[5][11] = 0,board[5][12] = 1,board[5][13] = 1,board[5][14] = 1,board[5][15] = 0,board[5][16] = 0,board[5][17] = 1,board[5][18] = 1,board[5][19] = 1,board[5][1] = 1,board[5][2] = 1,board[5][3] = 1,board[5][4] = 1,board[5][5] = 1,board[5][6] = 0,board[5][7] = 0,board[5][8] = 0,board[5][9] = 0,board[6][0] = 1,board[6][10] = 1,board[6][11] = 0,board[6][12] = 1,board[6][13] = 1,board[6][14] = 1,board[6][15] = 0,board[6][16] = 0,board[6][17] = 1,board[6][18] = 1,board[6][19] = 1,board[6][1] = 0,board[6][2] = 0,board[6][3] = 1,board[6][4] = 1,board[6][5] = 1,board[6][6] = 1,board[6][7] = 0,board[6][8] = 0,board[6][9] = 0,board[7][0] = 1,board[7][10] = 1,board[7][11] = 1,board[7][12] = 0,board[7][13] = 1,board[7][14] = 0,board[7][15] = 0,board[7][16] = 0,board[7][17] = 1,board[7][18] = 1,board[7][19] = 0,board[7][1] = 0,board[7][2] = 0,board[7][3] = 0,board[7][4] = 0,board[7][5] = 0,board[7][6] = 1,board[7][7] = 1,board[7][8] = 0,board[7][9] = 0,board[8][0] = 1,board[8][10] = 0,board[8][11] = 1,board[8][12] = 1,board[8][13] = 0,board[8][14] = 1,board[8][15] = 1,board[8][16] = 1,board[8][17] = 0,board[8][18] = 0,board[8][19] = 0,board[8][1] = 0,board[8][2] = 0,board[8][3] = 0,board[8][4] = 0,board[8][5] = 0,board[8][6] = 0,board[8][7] = 1,board[8][8] = 1,board[8][9] = 0,board[9][0] = 1,board[9][10] = 0,board[9][11] = 0,board[9][12] = 1,board[9][13] = 1,board[9][14] = 1,board[9][15] = 1,board[9][16] = 1,board[9][17] = 1,board[9][18] = 0,board[9][19] = 0,board[9][1] = 0,board[9][2] = 0,board[9][3] = 0,board[9][4] = 0,board[9][5] = 0,board[9][6] = 0,board[9][7] = 0,board[9][8] = 1,board[9][9] = 1]", 120 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 0,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][20] = 0,board[0][21] = 0,board[0][22] = 0,board[0][23] = 1,board[0][24] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 0,board[10][10] = 1,board[10][11] = 1,board[10][12] = 1,board[10][13] = 1,board[10][14] = 1,board[10][15] = 0,board[10][16] = 0,board[10][17] = 0,board[10][18] = 0,board[10][19] = 0,board[10][1] = 0,board[10][20] = 0,board[10][21] = 0,board[10][22] = 0,board[10][23] = 0,board[10][24] = 0,board[10][2] = 0,board[10][3] = 0,board[10][4] = 0,board[10][5] = 1,board[10][6] = 1,board[10][7] = 1,board[10][8] = 1,board[10][9] = 1,board[11][0] = 0,board[11][10] = 1,board[11][11] = 1,board[11][12] = 1,board[11][13] = 1,board[11][14] = 1,board[11][15] = 1,board[11][16] = 1,board[11][17] = 1,board[11][18] = 0,board[11][19] = 0,board[11][1] = 1,board[11][20] = 0,board[11][21] = 0,board[11][22] = 0,board[11][23] = 0,board[11][24] = 0,board[11][2] = 1,board[11][3] = 1,board[11][4] = 1,board[11][5] = 1,board[11][6] = 1,board[11][7] = 1,board[11][8] = 1,board[11][9] = 1,board[12][0] = 0,board[12][10] = 1,board[12][11] = 1,board[12][12] = 1,board[12][13] = 1,board[12][14] = 1,board[12][15] = 1,board[12][16] = 1,board[12][17] = 1,board[12][18] = 1,board[12][19] = 1,board[12][1] = 1,board[12][20] = 0,board[12][21] = 0,board[12][22] = 0,board[12][23] = 0,board[12][24] = 0,board[12][2] = 1,board[12][3] = 1,board[12][4] = 1,board[12][5] = 0,board[12][6] = 1,board[12][7] = 1,board[12][8] = 1,board[12][9] = 1,board[13][0] = 0,board[13][10] = 0,board[13][11] = 1,board[13][12] = 1,board[13][13] = 1,board[13][14] = 1,board[13][15] = 0,board[13][16] = 0,board[13][17] = 1,board[13][18] = 1,board[13][19] = 1,board[13][1] = 1,board[13][20] = 0,board[13][21] = 0,board[13][22] = 0,board[13][23] = 0,board[13][24] = 0,board[13][2] = 1,board[13][3] = 1,board[13][4] = 1,board[13][5] = 1,board[13][6] = 1,board[13][7] = 1,board[13][8] = 1,board[13][9] = 0,board[14][0] = 1,board[14][10] = 0,board[14][11] = 1,board[14][12] = 1,board[14][13] = 1,board[14][14] = 0,board[14][15] = 0,board[14][16] = 0,board[14][17] = 0,board[14][18] = 1,board[14][19] = 1,board[14][1] = 1,board[14][20] = 0,board[14][21] = 0,board[14][22] = 0,board[14][23] = 0,board[14][24] = 0,board[14][2] = 1,board[14][3] = 1,board[14][4] = 1,board[14][5] = 1,board[14][6] = 1,board[14][7] = 1,board[14][8] = 1,board[14][9] = 0,board[15][0] = 1,board[15][10] = 1,board[15][11] = 1,board[15][12] = 1,board[15][13] = 1,board[15][14] = 0,board[15][15] = 0,board[15][16] = 1,board[15][17] = 1,board[15][18] = 1,board[15][19] = 1,board[15][1] = 1,board[15][20] = 1,board[15][21] = 0,board[15][22] = 0,board[15][23] = 0,board[15][24] = 0,board[15][2] = 1,board[15][3] = 1,board[15][4] = 1,board[15][5] = 1,board[15][6] = 1,board[15][7] = 1,board[15][8] = 1,board[15][9] = 1,board[16][0] = 1,board[16][10] = 1,board[16][11] = 1,board[16][12] = 1,board[16][13] = 1,board[16][14] = 1,board[16][15] = 1,board[16][16] = 1,board[16][17] = 1,board[16][18] = 1,board[16][19] = 1,board[16][1] = 1,board[16][20] = 1,board[16][21] = 1,board[16][22] = 0,board[16][23] = 0,board[16][24] = 0,board[16][2] = 1,board[16][3] = 1,board[16][4] = 1,board[16][5] = 1,board[16][6] = 1,board[16][7] = 1,board[16][8] = 1,board[16][9] = 1,board[17][0] = 0,board[17][10] = 1,board[17][11] = 1,board[17][12] = 1,board[17][13] = 1,board[17][14] = 1,board[17][15] = 1,board[17][16] = 1,board[17][17] = 1,board[17][18] = 1,board[17][19] = 1,board[17][1] = 1,board[17][20] = 1,board[17][21] = 1,board[17][22] = 1,board[17][23] = 0,board[17][24] = 0,board[17][2] = 1,board[17][3] = 1,board[17][4] = 1,board[17][5] = 1,board[17][6] = 1,board[17][7] = 1,board[17][8] = 1,board[17][9] = 1,board[18][0] = 0,board[18][10] = 1,board[18][11] = 1,board[18][12] = 1,board[18][13] = 1,board[18][14] = 1,board[18][15] = 1,board[18][16] = 1,board[18][17] = 1,board[18][18] = 1,board[18][19] = 1,board[18][1] = 1,board[18][20] = 0,board[18][21] = 0,board[18][22] = 1,board[18][23] = 1,board[18][24] = 0,board[18][2] = 0,board[18][3] = 1,board[18][4] = 1,board[18][5] = 0,board[18][6] = 1,board[18][7] = 1,board[18][8] = 1,board[18][9] = 1,board[19][0] = 1,board[19][10] = 1,board[19][11] = 1,board[19][12] = 1,board[19][13] = 1,board[19][14] = 1,board[19][15] = 1,board[19][16] = 1,board[19][17] = 1,board[19][18] = 1,board[19][19] = 1,board[19][1] = 1,board[19][20] = 1,board[19][21] = 1,board[19][22] = 1,board[19][23] = 1,board[19][24] = 0,board[19][2] = 0,board[19][3] = 1,board[19][4] = 0,board[19][5] = 1,board[19][6] = 1,board[19][7] = 1,board[19][8] = 1,board[19][9] = 1,board[1][0] = 0,board[1][10] = 0,board[1][11] = 0,board[1][12] = 0,board[1][13] = 0,board[1][14] = 0,board[1][15] = 0,board[1][16] = 0,board[1][17] = 0,board[1][18] = 0,board[1][19] = 0,board[1][1] = 0,board[1][20] = 0,board[1][21] = 1,board[1][22] = 1,board[1][23] = 1,board[1][24] = 1,board[1][2] = 0,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[20][0] = 1,board[20][10] = 1,board[20][11] = 1,board[20][12] = 1,board[20][13] = 1,board[20][14] = 1,board[20][15] = 1,board[20][16] = 1,board[20][17] = 1,board[20][18] = 1,board[20][19] = 1,board[20][1] = 1,board[20][20] = 0,board[20][21] = 0,board[20][22] = 0,board[20][23] = 1,board[20][24] = 0,board[20][2] = 0,board[20][3] = 1,board[20][4] = 0,board[20][5] = 1,board[20][6] = 0,board[20][7] = 0,board[20][8] = 0,board[20][9] = 0,board[21][0] = 0,board[21][10] = 1,board[21][11] = 1,board[21][12] = 1,board[21][13] = 1,board[21][14] = 1,board[21][15] = 1,board[21][16] = 1,board[21][17] = 1,board[21][18] = 1,board[21][19] = 1,board[21][1] = 1,board[21][20] = 1,board[21][21] = 1,board[21][22] = 1,board[21][23] = 1,board[21][24] = 0,board[21][2] = 1,board[21][3] = 1,board[21][4] = 0,board[21][5] = 1,board[21][6] = 1,board[21][7] = 1,board[21][8] = 1,board[21][9] = 1,board[22][0] = 0,board[22][10] = 1,board[22][11] = 1,board[22][12] = 1,board[22][13] = 1,board[22][14] = 1,board[22][15] = 1,board[22][16] = 1,board[22][17] = 1,board[22][18] = 0,board[22][19] = 1,board[22][1] = 0,board[22][20] = 0,board[22][21] = 0,board[22][22] = 0,board[22][23] = 1,board[22][24] = 0,board[22][2] = 1,board[22][3] = 1,board[22][4] = 0,board[22][5] = 1,board[22][6] = 0,board[22][7] = 0,board[22][8] = 0,board[22][9] = 0,board[23][0] = 0,board[23][10] = 0,board[23][11] = 0,board[23][12] = 0,board[23][13] = 0,board[23][14] = 0,board[23][15] = 0,board[23][16] = 0,board[23][17] = 1,board[23][18] = 1,board[23][19] = 1,board[23][1] = 0,board[23][20] = 1,board[23][21] = 1,board[23][22] = 1,board[23][23] = 0,board[23][24] = 0,board[23][2] = 0,board[23][3] = 1,board[23][4] = 1,board[23][5] = 1,board[23][6] = 1,board[23][7] = 1,board[23][8] = 1,board[23][9] = 1,board[24][0] = 0,board[24][10] = 0,board[24][11] = 0,board[24][12] = 0,board[24][13] = 0,board[24][14] = 0,board[24][15] = 0,board[24][16] = 0,board[24][17] = 0,board[24][18] = 1,board[24][19] = 1,board[24][1] = 0,board[24][20] = 1,board[24][21] = 1,board[24][22] = 0,board[24][23] = 0,board[24][24] = 0,board[24][2] = 0,board[24][3] = 0,board[24][4] = 0,board[24][5] = 1,board[24][6] = 1,board[24][7] = 1,board[24][8] = 1,board[24][9] = 0,board[2][0] = 0,board[2][10] = 0,board[2][11] = 0,board[2][12] = 0,board[2][13] = 0,board[2][14] = 0,board[2][15] = 0,board[2][16] = 0,board[2][17] = 0,board[2][18] = 0,board[2][19] = 0,board[2][1] = 0,board[2][20] = 1,board[2][21] = 1,board[2][22] = 1,board[2][23] = 0,board[2][24] = 1,board[2][2] = 0,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 0,board[3][0] = 0,board[3][10] = 0,board[3][11] = 0,board[3][12] = 0,board[3][13] = 0,board[3][14] = 0,board[3][15] = 0,board[3][16] = 0,board[3][17] = 0,board[3][18] = 0,board[3][19] = 0,board[3][1] = 0,board[3][20] = 1,board[3][21] = 1,board[3][22] = 1,board[3][23] = 1,board[3][24] = 1,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 0,board[3][6] = 0,board[3][7] = 0,board[3][8] = 0,board[3][9] = 0,board[4][0] = 0,board[4][10] = 1,board[4][11] = 0,board[4][12] = 0,board[4][13] = 0,board[4][14] = 0,board[4][15] = 0,board[4][16] = 0,board[4][17] = 0,board[4][18] = 0,board[4][19] = 1,board[4][1] = 0,board[4][20] = 1,board[4][21] = 1,board[4][22] = 1,board[4][23] = 1,board[4][24] = 0,board[4][2] = 0,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 0,board[4][7] = 0,board[4][8] = 0,board[4][9] = 1,board[5][0] = 0,board[5][10] = 1,board[5][11] = 1,board[5][12] = 0,board[5][13] = 0,board[5][14] = 0,board[5][15] = 0,board[5][16] = 0,board[5][17] = 1,board[5][18] = 1,board[5][19] = 1,board[5][1] = 0,board[5][20] = 1,board[5][21] = 0,board[5][22] = 0,board[5][23] = 0,board[5][24] = 0,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 0,board[5][6] = 0,board[5][7] = 0,board[5][8] = 0,board[5][9] = 0,board[6][0] = 0,board[6][10] = 1,board[6][11] = 1,board[6][12] = 0,board[6][13] = 0,board[6][14] = 0,board[6][15] = 1,board[6][16] = 1,board[6][17] = 1,board[6][18] = 1,board[6][19] = 0,board[6][1] = 0,board[6][20] = 0,board[6][21] = 0,board[6][22] = 0,board[6][23] = 0,board[6][24] = 0,board[6][2] = 0,board[6][3] = 0,board[6][4] = 0,board[6][5] = 1,board[6][6] = 1,board[6][7] = 1,board[6][8] = 1,board[6][9] = 1,board[7][0] = 0,board[7][10] = 1,board[7][11] = 1,board[7][12] = 1,board[7][13] = 1,board[7][14] = 1,board[7][15] = 1,board[7][16] = 1,board[7][17] = 1,board[7][18] = 0,board[7][19] = 0,board[7][1] = 0,board[7][20] = 0,board[7][21] = 0,board[7][22] = 0,board[7][23] = 0,board[7][24] = 0,board[7][2] = 0,board[7][3] = 0,board[7][4] = 0,board[7][5] = 1,board[7][6] = 1,board[7][7] = 1,board[7][8] = 1,board[7][9] = 1,board[8][0] = 0,board[8][10] = 1,board[8][11] = 1,board[8][12] = 1,board[8][13] = 1,board[8][14] = 1,board[8][15] = 1,board[8][16] = 0,board[8][17] = 0,board[8][18] = 0,board[8][19] = 0,board[8][1] = 0,board[8][20] = 0,board[8][21] = 0,board[8][22] = 0,board[8][23] = 0,board[8][24] = 0,board[8][2] = 0,board[8][3] = 0,board[8][4] = 0,board[8][5] = 1,board[8][6] = 0,board[8][7] = 1,board[8][8] = 1,board[8][9] = 1,board[9][0] = 0,board[9][10] = 1,board[9][11] = 1,board[9][12] = 1,board[9][13] = 1,board[9][14] = 1,board[9][15] = 0,board[9][16] = 0,board[9][17] = 0,board[9][18] = 0,board[9][19] = 0,board[9][1] = 0,board[9][20] = 0,board[9][21] = 0,board[9][22] = 0,board[9][23] = 0,board[9][24] = 0,board[9][2] = 0,board[9][3] = 0,board[9][4] = 0,board[9][5] = 1,board[9][6] = 0,board[9][7] = 1,board[9][8] = 1,board[9][9] = 1]", 121 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 1,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 1,board[0][20] = 0,board[0][21] = 0,board[0][22] = 0,board[0][23] = 0,board[0][24] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 1,board[10][10] = 0,board[10][11] = 0,board[10][12] = 0,board[10][13] = 0,board[10][14] = 0,board[10][15] = 0,board[10][16] = 0,board[10][17] = 1,board[10][18] = 1,board[10][19] = 1,board[10][1] = 1,board[10][20] = 1,board[10][21] = 1,board[10][22] = 1,board[10][23] = 0,board[10][24] = 0,board[10][2] = 0,board[10][3] = 0,board[10][4] = 0,board[10][5] = 1,board[10][6] = 1,board[10][7] = 0,board[10][8] = 1,board[10][9] = 1,board[11][0] = 1,board[11][10] = 0,board[11][11] = 1,board[11][12] = 1,board[11][13] = 1,board[11][14] = 1,board[11][15] = 1,board[11][16] = 1,board[11][17] = 1,board[11][18] = 1,board[11][19] = 1,board[11][1] = 1,board[11][20] = 1,board[11][21] = 1,board[11][22] = 0,board[11][23] = 0,board[11][24] = 0,board[11][2] = 1,board[11][3] = 1,board[11][4] = 1,board[11][5] = 1,board[11][6] = 1,board[11][7] = 0,board[11][8] = 0,board[11][9] = 0,board[12][0] = 1,board[12][10] = 1,board[12][11] = 1,board[12][12] = 1,board[12][13] = 1,board[12][14] = 1,board[12][15] = 1,board[12][16] = 1,board[12][17] = 1,board[12][18] = 1,board[12][19] = 1,board[12][1] = 0,board[12][20] = 1,board[12][21] = 0,board[12][22] = 0,board[12][23] = 0,board[12][24] = 0,board[12][2] = 0,board[12][3] = 1,board[12][4] = 0,board[12][5] = 0,board[12][6] = 1,board[12][7] = 0,board[12][8] = 1,board[12][9] = 1,board[13][0] = 1,board[13][10] = 1,board[13][11] = 1,board[13][12] = 1,board[13][13] = 1,board[13][14] = 1,board[13][15] = 1,board[13][16] = 1,board[13][17] = 1,board[13][18] = 1,board[13][19] = 1,board[13][1] = 1,board[13][20] = 0,board[13][21] = 0,board[13][22] = 0,board[13][23] = 0,board[13][24] = 0,board[13][2] = 1,board[13][3] = 1,board[13][4] = 1,board[13][5] = 1,board[13][6] = 1,board[13][7] = 0,board[13][8] = 1,board[13][9] = 1,board[14][0] = 0,board[14][10] = 1,board[14][11] = 1,board[14][12] = 1,board[14][13] = 1,board[14][14] = 1,board[14][15] = 1,board[14][16] = 1,board[14][17] = 1,board[14][18] = 1,board[14][19] = 1,board[14][1] = 1,board[14][20] = 0,board[14][21] = 0,board[14][22] = 0,board[14][23] = 0,board[14][24] = 0,board[14][2] = 1,board[14][3] = 1,board[14][4] = 1,board[14][5] = 1,board[14][6] = 0,board[14][7] = 0,board[14][8] = 1,board[14][9] = 1,board[15][0] = 0,board[15][10] = 1,board[15][11] = 1,board[15][12] = 1,board[15][13] = 1,board[15][14] = 1,board[15][15] = 1,board[15][16] = 1,board[15][17] = 1,board[15][18] = 1,board[15][19] = 1,board[15][1] = 0,board[15][20] = 0,board[15][21] = 0,board[15][22] = 0,board[15][23] = 0,board[15][24] = 0,board[15][2] = 0,board[15][3] = 0,board[15][4] = 0,board[15][5] = 0,board[15][6] = 0,board[15][7] = 1,board[15][8] = 1,board[15][9] = 1,board[16][0] = 1,board[16][10] = 1,board[16][11] = 1,board[16][12] = 1,board[16][13] = 1,board[16][14] = 1,board[16][15] = 1,board[16][16] = 1,board[16][17] = 1,board[16][18] = 1,board[16][19] = 1,board[16][1] = 1,board[16][20] = 1,board[16][21] = 0,board[16][22] = 0,board[16][23] = 0,board[16][24] = 0,board[16][2] = 1,board[16][3] = 1,board[16][4] = 1,board[16][5] = 0,board[16][6] = 1,board[16][7] = 1,board[16][8] = 1,board[16][9] = 1,board[17][0] = 1,board[17][10] = 1,board[17][11] = 1,board[17][12] = 1,board[17][13] = 1,board[17][14] = 1,board[17][15] = 1,board[17][16] = 1,board[17][17] = 1,board[17][18] = 1,board[17][19] = 1,board[17][1] = 1,board[17][20] = 1,board[17][21] = 0,board[17][22] = 0,board[17][23] = 0,board[17][24] = 0,board[17][2] = 1,board[17][3] = 1,board[17][4] = 1,board[17][5] = 0,board[17][6] = 1,board[17][7] = 1,board[17][8] = 1,board[17][9] = 1,board[18][0] = 0,board[18][10] = 1,board[18][11] = 1,board[18][12] = 1,board[18][13] = 1,board[18][14] = 1,board[18][15] = 1,board[18][16] = 1,board[18][17] = 1,board[18][18] = 1,board[18][19] = 1,board[18][1] = 0,board[18][20] = 1,board[18][21] = 1,board[18][22] = 0,board[18][23] = 0,board[18][24] = 0,board[18][2] = 1,board[18][3] = 1,board[18][4] = 1,board[18][5] = 0,board[18][6] = 1,board[18][7] = 1,board[18][8] = 1,board[18][9] = 1,board[19][0] = 0,board[19][10] = 0,board[19][11] = 0,board[19][12] = 0,board[19][13] = 0,board[19][14] = 0,board[19][15] = 0,board[19][16] = 0,board[19][17] = 1,board[19][18] = 1,board[19][19] = 1,board[19][1] = 1,board[19][20] = 1,board[19][21] = 1,board[19][22] = 0,board[19][23] = 0,board[19][24] = 0,board[19][2] = 1,board[19][3] = 1,board[19][4] = 0,board[19][5] = 0,board[19][6] = 1,board[19][7] = 1,board[19][8] = 1,board[19][9] = 1,board[1][0] = 0,board[1][10] = 0,board[1][11] = 1,board[1][12] = 1,board[1][13] = 0,board[1][14] = 0,board[1][15] = 0,board[1][16] = 0,board[1][17] = 0,board[1][18] = 0,board[1][19] = 0,board[1][1] = 1,board[1][20] = 0,board[1][21] = 0,board[1][22] = 0,board[1][23] = 0,board[1][24] = 0,board[1][2] = 1,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[20][0] = 1,board[20][10] = 1,board[20][11] = 0,board[20][12] = 0,board[20][13] = 0,board[20][14] = 0,board[20][15] = 0,board[20][16] = 1,board[20][17] = 1,board[20][18] = 1,board[20][19] = 1,board[20][1] = 1,board[20][20] = 1,board[20][21] = 1,board[20][22] = 1,board[20][23] = 0,board[20][24] = 0,board[20][2] = 1,board[20][3] = 0,board[20][4] = 0,board[20][5] = 1,board[20][6] = 1,board[20][7] = 1,board[20][8] = 1,board[20][9] = 0,board[21][0] = 1,board[21][10] = 1,board[21][11] = 0,board[21][12] = 0,board[21][13] = 0,board[21][14] = 0,board[21][15] = 0,board[21][16] = 1,board[21][17] = 1,board[21][18] = 0,board[21][19] = 1,board[21][1] = 1,board[21][20] = 1,board[21][21] = 1,board[21][22] = 1,board[21][23] = 0,board[21][24] = 0,board[21][2] = 0,board[21][3] = 0,board[21][4] = 1,board[21][5] = 1,board[21][6] = 1,board[21][7] = 1,board[21][8] = 0,board[21][9] = 1,board[22][0] = 0,board[22][10] = 1,board[22][11] = 1,board[22][12] = 0,board[22][13] = 0,board[22][14] = 0,board[22][15] = 1,board[22][16] = 1,board[22][17] = 1,board[22][18] = 0,board[22][19] = 0,board[22][1] = 0,board[22][20] = 1,board[22][21] = 1,board[22][22] = 1,board[22][23] = 1,board[22][24] = 0,board[22][2] = 0,board[22][3] = 1,board[22][4] = 1,board[22][5] = 1,board[22][6] = 1,board[22][7] = 0,board[22][8] = 0,board[22][9] = 1,board[23][0] = 0,board[23][10] = 1,board[23][11] = 1,board[23][12] = 0,board[23][13] = 0,board[23][14] = 0,board[23][15] = 1,board[23][16] = 1,board[23][17] = 0,board[23][18] = 0,board[23][19] = 0,board[23][1] = 0,board[23][20] = 0,board[23][21] = 1,board[23][22] = 1,board[23][23] = 1,board[23][24] = 0,board[23][2] = 0,board[23][3] = 1,board[23][4] = 1,board[23][5] = 1,board[23][6] = 0,board[23][7] = 0,board[23][8] = 0,board[23][9] = 0,board[24][0] = 0,board[24][10] = 1,board[24][11] = 1,board[24][12] = 0,board[24][13] = 0,board[24][14] = 0,board[24][15] = 1,board[24][16] = 1,board[24][17] = 0,board[24][18] = 0,board[24][19] = 0,board[24][1] = 0,board[24][20] = 0,board[24][21] = 0,board[24][22] = 1,board[24][23] = 1,board[24][24] = 0,board[24][2] = 0,board[24][3] = 1,board[24][4] = 1,board[24][5] = 0,board[24][6] = 0,board[24][7] = 0,board[24][8] = 0,board[24][9] = 0,board[2][0] = 0,board[2][10] = 1,board[2][11] = 1,board[2][12] = 1,board[2][13] = 0,board[2][14] = 0,board[2][15] = 0,board[2][16] = 0,board[2][17] = 0,board[2][18] = 0,board[2][19] = 0,board[2][1] = 1,board[2][20] = 0,board[2][21] = 0,board[2][22] = 0,board[2][23] = 0,board[2][24] = 0,board[2][2] = 1,board[2][3] = 1,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 0,board[3][0] = 0,board[3][10] = 1,board[3][11] = 1,board[3][12] = 1,board[3][13] = 0,board[3][14] = 0,board[3][15] = 0,board[3][16] = 0,board[3][17] = 0,board[3][18] = 0,board[3][19] = 0,board[3][1] = 1,board[3][20] = 0,board[3][21] = 0,board[3][22] = 0,board[3][23] = 0,board[3][24] = 0,board[3][2] = 1,board[3][3] = 1,board[3][4] = 1,board[3][5] = 1,board[3][6] = 1,board[3][7] = 1,board[3][8] = 1,board[3][9] = 1,board[4][0] = 0,board[4][10] = 1,board[4][11] = 1,board[4][12] = 1,board[4][13] = 0,board[4][14] = 0,board[4][15] = 0,board[4][16] = 0,board[4][17] = 0,board[4][18] = 0,board[4][19] = 0,board[4][1] = 1,board[4][20] = 0,board[4][21] = 0,board[4][22] = 0,board[4][23] = 0,board[4][24] = 0,board[4][2] = 1,board[4][3] = 1,board[4][4] = 1,board[4][5] = 1,board[4][6] = 1,board[4][7] = 1,board[4][8] = 1,board[4][9] = 1,board[5][0] = 0,board[5][10] = 0,board[5][11] = 1,board[5][12] = 1,board[5][13] = 0,board[5][14] = 0,board[5][15] = 0,board[5][16] = 0,board[5][17] = 0,board[5][18] = 0,board[5][19] = 0,board[5][1] = 1,board[5][20] = 0,board[5][21] = 0,board[5][22] = 0,board[5][23] = 0,board[5][24] = 0,board[5][2] = 1,board[5][3] = 0,board[5][4] = 0,board[5][5] = 1,board[5][6] = 1,board[5][7] = 1,board[5][8] = 1,board[5][9] = 0,board[6][0] = 0,board[6][10] = 1,board[6][11] = 1,board[6][12] = 1,board[6][13] = 0,board[6][14] = 0,board[6][15] = 0,board[6][16] = 0,board[6][17] = 0,board[6][18] = 0,board[6][19] = 0,board[6][1] = 1,board[6][20] = 0,board[6][21] = 0,board[6][22] = 0,board[6][23] = 0,board[6][24] = 0,board[6][2] = 1,board[6][3] = 1,board[6][4] = 1,board[6][5] = 0,board[6][6] = 1,board[6][7] = 1,board[6][8] = 0,board[6][9] = 1,board[7][0] = 0,board[7][10] = 1,board[7][11] = 1,board[7][12] = 0,board[7][13] = 0,board[7][14] = 0,board[7][15] = 0,board[7][16] = 0,board[7][17] = 0,board[7][18] = 0,board[7][19] = 0,board[7][1] = 0,board[7][20] = 0,board[7][21] = 0,board[7][22] = 0,board[7][23] = 1,board[7][24] = 1,board[7][2] = 1,board[7][3] = 1,board[7][4] = 1,board[7][5] = 1,board[7][6] = 1,board[7][7] = 1,board[7][8] = 1,board[7][9] = 1,board[8][0] = 0,board[8][10] = 1,board[8][11] = 1,board[8][12] = 0,board[8][13] = 0,board[8][14] = 0,board[8][15] = 0,board[8][16] = 0,board[8][17] = 0,board[8][18] = 0,board[8][19] = 0,board[8][1] = 0,board[8][20] = 0,board[8][21] = 1,board[8][22] = 1,board[8][23] = 1,board[8][24] = 1,board[8][2] = 1,board[8][3] = 1,board[8][4] = 1,board[8][5] = 0,board[8][6] = 0,board[8][7] = 0,board[8][8] = 1,board[8][9] = 1,board[9][0] = 1,board[9][10] = 1,board[9][11] = 0,board[9][12] = 0,board[9][13] = 0,board[9][14] = 0,board[9][15] = 0,board[9][16] = 0,board[9][17] = 0,board[9][18] = 0,board[9][19] = 1,board[9][1] = 0,board[9][20] = 1,board[9][21] = 1,board[9][22] = 1,board[9][23] = 1,board[9][24] = 0,board[9][2] = 0,board[9][3] = 0,board[9][4] = 0,board[9][5] = 0,board[9][6] = 1,board[9][7] = 0,board[9][8] = 1,board[9][9] = 1]", 122 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 0,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 1,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][20] = 0,board[0][21] = 0,board[0][22] = 0,board[0][23] = 0,board[0][24] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 1,board[10][10] = 1,board[10][11] = 1,board[10][12] = 1,board[10][13] = 1,board[10][14] = 1,board[10][15] = 1,board[10][16] = 0,board[10][17] = 1,board[10][18] = 1,board[10][19] = 1,board[10][1] = 1,board[10][20] = 1,board[10][21] = 1,board[10][22] = 1,board[10][23] = 1,board[10][24] = 1,board[10][2] = 1,board[10][3] = 1,board[10][4] = 1,board[10][5] = 1,board[10][6] = 1,board[10][7] = 1,board[10][8] = 1,board[10][9] = 1,board[11][0] = 0,board[11][10] = 1,board[11][11] = 1,board[11][12] = 1,board[11][13] = 1,board[11][14] = 1,board[11][15] = 1,board[11][16] = 1,board[11][17] = 1,board[11][18] = 1,board[11][19] = 0,board[11][1] = 1,board[11][20] = 0,board[11][21] = 0,board[11][22] = 0,board[11][23] = 0,board[11][24] = 0,board[11][2] = 1,board[11][3] = 1,board[11][4] = 0,board[11][5] = 1,board[11][6] = 1,board[11][7] = 1,board[11][8] = 1,board[11][9] = 1,board[12][0] = 0,board[12][10] = 0,board[12][11] = 1,board[12][12] = 0,board[12][13] = 1,board[12][14] = 0,board[12][15] = 0,board[12][16] = 1,board[12][17] = 1,board[12][18] = 1,board[12][19] = 0,board[12][1] = 0,board[12][20] = 0,board[12][21] = 0,board[12][22] = 0,board[12][23] = 0,board[12][24] = 0,board[12][2] = 0,board[12][3] = 0,board[12][4] = 0,board[12][5] = 0,board[12][6] = 1,board[12][7] = 1,board[12][8] = 1,board[12][9] = 0,board[13][0] = 0,board[13][10] = 1,board[13][11] = 1,board[13][12] = 1,board[13][13] = 1,board[13][14] = 1,board[13][15] = 0,board[13][16] = 0,board[13][17] = 1,board[13][18] = 1,board[13][19] = 1,board[13][1] = 0,board[13][20] = 1,board[13][21] = 0,board[13][22] = 0,board[13][23] = 0,board[13][24] = 0,board[13][2] = 0,board[13][3] = 0,board[13][4] = 1,board[13][5] = 1,board[13][6] = 1,board[13][7] = 1,board[13][8] = 0,board[13][9] = 0,board[14][0] = 0,board[14][10] = 0,board[14][11] = 0,board[14][12] = 0,board[14][13] = 0,board[14][14] = 0,board[14][15] = 1,board[14][16] = 1,board[14][17] = 1,board[14][18] = 1,board[14][19] = 1,board[14][1] = 0,board[14][20] = 1,board[14][21] = 1,board[14][22] = 1,board[14][23] = 0,board[14][24] = 0,board[14][2] = 1,board[14][3] = 1,board[14][4] = 1,board[14][5] = 1,board[14][6] = 1,board[14][7] = 1,board[14][8] = 1,board[14][9] = 1,board[15][0] = 0,board[15][10] = 1,board[15][11] = 0,board[15][12] = 0,board[15][13] = 0,board[15][14] = 1,board[15][15] = 1,board[15][16] = 1,board[15][17] = 1,board[15][18] = 1,board[15][19] = 1,board[15][1] = 1,board[15][20] = 1,board[15][21] = 1,board[15][22] = 1,board[15][23] = 1,board[15][24] = 0,board[15][2] = 1,board[15][3] = 1,board[15][4] = 1,board[15][5] = 1,board[15][6] = 1,board[15][7] = 1,board[15][8] = 1,board[15][9] = 1,board[16][0] = 0,board[16][10] = 1,board[16][11] = 0,board[16][12] = 0,board[16][13] = 0,board[16][14] = 1,board[16][15] = 1,board[16][16] = 1,board[16][17] = 1,board[16][18] = 0,board[16][19] = 0,board[16][1] = 1,board[16][20] = 1,board[16][21] = 1,board[16][22] = 1,board[16][23] = 1,board[16][24] = 0,board[16][2] = 1,board[16][3] = 1,board[16][4] = 1,board[16][5] = 0,board[16][6] = 0,board[16][7] = 1,board[16][8] = 1,board[16][9] = 1,board[17][0] = 1,board[17][10] = 1,board[17][11] = 1,board[17][12] = 0,board[17][13] = 1,board[17][14] = 1,board[17][15] = 1,board[17][16] = 1,board[17][17] = 0,board[17][18] = 0,board[17][19] = 0,board[17][1] = 1,board[17][20] = 0,board[17][21] = 1,board[17][22] = 1,board[17][23] = 1,board[17][24] = 1,board[17][2] = 1,board[17][3] = 1,board[17][4] = 0,board[17][5] = 0,board[17][6] = 0,board[17][7] = 0,board[17][8] = 1,board[17][9] = 1,board[18][0] = 1,board[18][10] = 1,board[18][11] = 1,board[18][12] = 0,board[18][13] = 1,board[18][14] = 1,board[18][15] = 1,board[18][16] = 0,board[18][17] = 0,board[18][18] = 1,board[18][19] = 1,board[18][1] = 1,board[18][20] = 0,board[18][21] = 0,board[18][22] = 1,board[18][23] = 1,board[18][24] = 1,board[18][2] = 1,board[18][3] = 0,board[18][4] = 0,board[18][5] = 1,board[18][6] = 1,board[18][7] = 0,board[18][8] = 0,board[18][9] = 1,board[19][0] = 1,board[19][10] = 1,board[19][11] = 1,board[19][12] = 0,board[19][13] = 1,board[19][14] = 1,board[19][15] = 1,board[19][16] = 0,board[19][17] = 0,board[19][18] = 1,board[19][19] = 1,board[19][1] = 1,board[19][20] = 0,board[19][21] = 0,board[19][22] = 1,board[19][23] = 1,board[19][24] = 1,board[19][2] = 1,board[19][3] = 0,board[19][4] = 0,board[19][5] = 1,board[19][6] = 1,board[19][7] = 0,board[19][8] = 0,board[19][9] = 1,board[1][0] = 0,board[1][10] = 1,board[1][11] = 1,board[1][12] = 1,board[1][13] = 1,board[1][14] = 1,board[1][15] = 1,board[1][16] = 0,board[1][17] = 1,board[1][18] = 1,board[1][19] = 1,board[1][1] = 0,board[1][20] = 0,board[1][21] = 0,board[1][22] = 0,board[1][23] = 0,board[1][24] = 0,board[1][2] = 0,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 1,board[20][0] = 1,board[20][10] = 1,board[20][11] = 1,board[20][12] = 0,board[20][13] = 1,board[20][14] = 1,board[20][15] = 1,board[20][16] = 1,board[20][17] = 0,board[20][18] = 0,board[20][19] = 0,board[20][1] = 1,board[20][20] = 0,board[20][21] = 1,board[20][22] = 1,board[20][23] = 1,board[20][24] = 1,board[20][2] = 1,board[20][3] = 1,board[20][4] = 0,board[20][5] = 0,board[20][6] = 0,board[20][7] = 0,board[20][8] = 1,board[20][9] = 1,board[21][0] = 0,board[21][10] = 1,board[21][11] = 0,board[21][12] = 0,board[21][13] = 0,board[21][14] = 1,board[21][15] = 1,board[21][16] = 1,board[21][17] = 1,board[21][18] = 0,board[21][19] = 0,board[21][1] = 1,board[21][20] = 1,board[21][21] = 1,board[21][22] = 1,board[21][23] = 1,board[21][24] = 0,board[21][2] = 1,board[21][3] = 1,board[21][4] = 1,board[21][5] = 0,board[21][6] = 0,board[21][7] = 1,board[21][8] = 1,board[21][9] = 1,board[22][0] = 0,board[22][10] = 1,board[22][11] = 0,board[22][12] = 0,board[22][13] = 0,board[22][14] = 1,board[22][15] = 1,board[22][16] = 1,board[22][17] = 1,board[22][18] = 1,board[22][19] = 1,board[22][1] = 1,board[22][20] = 1,board[22][21] = 1,board[22][22] = 1,board[22][23] = 1,board[22][24] = 0,board[22][2] = 1,board[22][3] = 1,board[22][4] = 1,board[22][5] = 1,board[22][6] = 1,board[22][7] = 1,board[22][8] = 1,board[22][9] = 1,board[23][0] = 0,board[23][10] = 0,board[23][11] = 0,board[23][12] = 0,board[23][13] = 0,board[23][14] = 0,board[23][15] = 1,board[23][16] = 1,board[23][17] = 1,board[23][18] = 1,board[23][19] = 1,board[23][1] = 0,board[23][20] = 1,board[23][21] = 1,board[23][22] = 1,board[23][23] = 0,board[23][24] = 0,board[23][2] = 1,board[23][3] = 1,board[23][4] = 1,board[23][5] = 1,board[23][6] = 1,board[23][7] = 1,board[23][8] = 1,board[23][9] = 1,board[24][0] = 0,board[24][10] = 0,board[24][11] = 0,board[24][12] = 0,board[24][13] = 0,board[24][14] = 0,board[24][15] = 0,board[24][16] = 0,board[24][17] = 1,board[24][18] = 1,board[24][19] = 1,board[24][1] = 0,board[24][20] = 1,board[24][21] = 0,board[24][22] = 0,board[24][23] = 0,board[24][24] = 0,board[24][2] = 0,board[24][3] = 0,board[24][4] = 1,board[24][5] = 1,board[24][6] = 1,board[24][7] = 1,board[24][8] = 0,board[24][9] = 0,board[2][0] = 0,board[2][10] = 0,board[2][11] = 0,board[2][12] = 0,board[2][13] = 0,board[2][14] = 0,board[2][15] = 1,board[2][16] = 0,board[2][17] = 1,board[2][18] = 1,board[2][19] = 1,board[2][1] = 0,board[2][20] = 1,board[2][21] = 0,board[2][22] = 0,board[2][23] = 0,board[2][24] = 0,board[2][2] = 0,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 1,board[2][9] = 1,board[3][0] = 0,board[3][10] = 0,board[3][11] = 0,board[3][12] = 0,board[3][13] = 0,board[3][14] = 0,board[3][15] = 1,board[3][16] = 0,board[3][17] = 1,board[3][18] = 0,board[3][19] = 0,board[3][1] = 0,board[3][20] = 1,board[3][21] = 1,board[3][22] = 0,board[3][23] = 0,board[3][24] = 0,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 0,board[3][6] = 0,board[3][7] = 1,board[3][8] = 1,board[3][9] = 0,board[4][0] = 0,board[4][10] = 0,board[4][11] = 0,board[4][12] = 0,board[4][13] = 0,board[4][14] = 0,board[4][15] = 1,board[4][16] = 0,board[4][17] = 1,board[4][18] = 0,board[4][19] = 0,board[4][1] = 1,board[4][20] = 0,board[4][21] = 1,board[4][22] = 1,board[4][23] = 0,board[4][24] = 0,board[4][2] = 1,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 1,board[4][7] = 1,board[4][8] = 0,board[4][9] = 0,board[5][0] = 0,board[5][10] = 0,board[5][11] = 0,board[5][12] = 0,board[5][13] = 0,board[5][14] = 0,board[5][15] = 1,board[5][16] = 0,board[5][17] = 1,board[5][18] = 0,board[5][19] = 0,board[5][1] = 1,board[5][20] = 0,board[5][21] = 0,board[5][22] = 1,board[5][23] = 1,board[5][24] = 0,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 1,board[5][6] = 1,board[5][7] = 0,board[5][8] = 0,board[5][9] = 0,board[6][0] = 1,board[6][10] = 1,board[6][11] = 1,board[6][12] = 1,board[6][13] = 1,board[6][14] = 1,board[6][15] = 1,board[6][16] = 1,board[6][17] = 1,board[6][18] = 1,board[6][19] = 1,board[6][1] = 1,board[6][20] = 1,board[6][21] = 1,board[6][22] = 1,board[6][23] = 1,board[6][24] = 1,board[6][2] = 1,board[6][3] = 1,board[6][4] = 1,board[6][5] = 1,board[6][6] = 1,board[6][7] = 1,board[6][8] = 1,board[6][9] = 1,board[7][0] = 1,board[7][10] = 1,board[7][11] = 1,board[7][12] = 0,board[7][13] = 0,board[7][14] = 1,board[7][15] = 1,board[7][16] = 0,board[7][17] = 1,board[7][18] = 1,board[7][19] = 1,board[7][1] = 1,board[7][20] = 1,board[7][21] = 1,board[7][22] = 1,board[7][23] = 1,board[7][24] = 1,board[7][2] = 1,board[7][3] = 1,board[7][4] = 1,board[7][5] = 1,board[7][6] = 1,board[7][7] = 1,board[7][8] = 1,board[7][9] = 1,board[8][0] = 1,board[8][10] = 1,board[8][11] = 1,board[8][12] = 1,board[8][13] = 1,board[8][14] = 1,board[8][15] = 1,board[8][16] = 0,board[8][17] = 1,board[8][18] = 1,board[8][19] = 1,board[8][1] = 1,board[8][20] = 1,board[8][21] = 1,board[8][22] = 1,board[8][23] = 1,board[8][24] = 1,board[8][2] = 1,board[8][3] = 1,board[8][4] = 1,board[8][5] = 1,board[8][6] = 1,board[8][7] = 1,board[8][8] = 1,board[8][9] = 1,board[9][0] = 1,board[9][10] = 1,board[9][11] = 1,board[9][12] = 1,board[9][13] = 1,board[9][14] = 1,board[9][15] = 1,board[9][16] = 0,board[9][17] = 1,board[9][18] = 1,board[9][19] = 1,board[9][1] = 1,board[9][20] = 1,board[9][21] = 1,board[9][22] = 1,board[9][23] = 1,board[9][24] = 1,board[9][2] = 1,board[9][3] = 1,board[9][4] = 1,board[9][5] = 1,board[9][6] = 1,board[9][7] = 1,board[9][8] = 1,board[9][9] = 1]", 123 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 1,board[0][12] = 1,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][20] = 0,board[0][21] = 0,board[0][22] = 0,board[0][23] = 0,board[0][24] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 0,board[10][10] = 0,board[10][11] = 0,board[10][12] = 0,board[10][13] = 0,board[10][14] = 0,board[10][15] = 0,board[10][16] = 0,board[10][17] = 1,board[10][18] = 1,board[10][19] = 1,board[10][1] = 1,board[10][20] = 1,board[10][21] = 1,board[10][22] = 1,board[10][23] = 1,board[10][24] = 0,board[10][2] = 1,board[10][3] = 1,board[10][4] = 1,board[10][5] = 1,board[10][6] = 1,board[10][7] = 1,board[10][8] = 0,board[10][9] = 0,board[11][0] = 1,board[11][10] = 0,board[11][11] = 0,board[11][12] = 0,board[11][13] = 0,board[11][14] = 0,board[11][15] = 1,board[11][16] = 1,board[11][17] = 1,board[11][18] = 0,board[11][19] = 0,board[11][1] = 1,board[11][20] = 0,board[11][21] = 0,board[11][22] = 1,board[11][23] = 1,board[11][24] = 1,board[11][2] = 1,board[11][3] = 0,board[11][4] = 0,board[11][5] = 0,board[11][6] = 0,board[11][7] = 1,board[11][8] = 1,board[11][9] = 1,board[12][0] = 1,board[12][10] = 1,board[12][11] = 1,board[12][12] = 0,board[12][13] = 1,board[12][14] = 1,board[12][15] = 1,board[12][16] = 0,board[12][17] = 0,board[12][18] = 1,board[12][19] = 1,board[12][1] = 0,board[12][20] = 1,board[12][21] = 1,board[12][22] = 0,board[12][23] = 0,board[12][24] = 1,board[12][2] = 0,board[12][3] = 1,board[12][4] = 1,board[12][5] = 1,board[12][6] = 1,board[12][7] = 0,board[12][8] = 0,board[12][9] = 1,board[13][0] = 1,board[13][10] = 1,board[13][11] = 1,board[13][12] = 1,board[13][13] = 1,board[13][14] = 1,board[13][15] = 0,board[13][16] = 0,board[13][17] = 1,board[13][18] = 1,board[13][19] = 1,board[13][1] = 0,board[13][20] = 1,board[13][21] = 1,board[13][22] = 1,board[13][23] = 0,board[13][24] = 1,board[13][2] = 1,board[13][3] = 1,board[13][4] = 1,board[13][5] = 1,board[13][6] = 1,board[13][7] = 1,board[13][8] = 0,board[13][9] = 0,board[14][0] = 1,board[14][10] = 1,board[14][11] = 0,board[14][12] = 0,board[14][13] = 0,board[14][14] = 1,board[14][15] = 0,board[14][16] = 1,board[14][17] = 1,board[14][18] = 1,board[14][19] = 1,board[14][1] = 0,board[14][20] = 1,board[14][21] = 1,board[14][22] = 1,board[14][23] = 0,board[14][24] = 1,board[14][2] = 1,board[14][3] = 1,board[14][4] = 1,board[14][5] = 1,board[14][6] = 1,board[14][7] = 1,board[14][8] = 1,board[14][9] = 0,board[15][0] = 1,board[15][10] = 1,board[15][11] = 0,board[15][12] = 0,board[15][13] = 0,board[15][14] = 1,board[15][15] = 0,board[15][16] = 1,board[15][17] = 1,board[15][18] = 1,board[15][19] = 1,board[15][1] = 0,board[15][20] = 1,board[15][21] = 1,board[15][22] = 1,board[15][23] = 0,board[15][24] = 1,board[15][2] = 1,board[15][3] = 1,board[15][4] = 1,board[15][5] = 1,board[15][6] = 1,board[15][7] = 1,board[15][8] = 1,board[15][9] = 0,board[16][0] = 1,board[16][10] = 1,board[16][11] = 1,board[16][12] = 0,board[16][13] = 1,board[16][14] = 1,board[16][15] = 0,board[16][16] = 0,board[16][17] = 1,board[16][18] = 1,board[16][19] = 1,board[16][1] = 1,board[16][20] = 1,board[16][21] = 1,board[16][22] = 0,board[16][23] = 1,board[16][24] = 1,board[16][2] = 0,board[16][3] = 1,board[16][4] = 1,board[16][5] = 1,board[16][6] = 1,board[16][7] = 1,board[16][8] = 0,board[16][9] = 0,board[17][0] = 0,board[17][10] = 1,board[17][11] = 1,board[17][12] = 0,board[17][13] = 1,board[17][14] = 1,board[17][15] = 1,board[17][16] = 0,board[17][17] = 0,board[17][18] = 1,board[17][19] = 1,board[17][1] = 1,board[17][20] = 1,board[17][21] = 0,board[17][22] = 1,board[17][23] = 1,board[17][24] = 0,board[17][2] = 1,board[17][3] = 0,board[17][4] = 1,board[17][5] = 1,board[17][6] = 1,board[17][7] = 0,board[17][8] = 0,board[17][9] = 1,board[18][0] = 0,board[18][10] = 1,board[18][11] = 0,board[18][12] = 0,board[18][13] = 0,board[18][14] = 1,board[18][15] = 0,board[18][16] = 1,board[18][17] = 0,board[18][18] = 0,board[18][19] = 0,board[18][1] = 0,board[18][20] = 0,board[18][21] = 1,board[18][22] = 1,board[18][23] = 0,board[18][24] = 0,board[18][2] = 1,board[18][3] = 1,board[18][4] = 0,board[18][5] = 0,board[18][6] = 0,board[18][7] = 0,board[18][8] = 1,board[18][9] = 0,board[19][0] = 0,board[19][10] = 0,board[19][11] = 0,board[19][12] = 0,board[19][13] = 0,board[19][14] = 0,board[19][15] = 0,board[19][16] = 0,board[19][17] = 1,board[19][18] = 1,board[19][19] = 1,board[19][1] = 0,board[19][20] = 1,board[19][21] = 1,board[19][22] = 0,board[19][23] = 0,board[19][24] = 0,board[19][2] = 0,board[19][3] = 1,board[19][4] = 1,board[19][5] = 1,board[19][6] = 1,board[19][7] = 1,board[19][8] = 0,board[19][9] = 0,board[1][0] = 0,board[1][10] = 1,board[1][11] = 1,board[1][12] = 1,board[1][13] = 1,board[1][14] = 0,board[1][15] = 0,board[1][16] = 0,board[1][17] = 0,board[1][18] = 0,board[1][19] = 0,board[1][1] = 0,board[1][20] = 0,board[1][21] = 0,board[1][22] = 0,board[1][23] = 0,board[1][24] = 0,board[1][2] = 0,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[2][0] = 0,board[2][10] = 1,board[2][11] = 0,board[2][12] = 0,board[2][13] = 1,board[2][14] = 1,board[2][15] = 0,board[2][16] = 0,board[2][17] = 0,board[2][18] = 0,board[2][19] = 0,board[2][1] = 0,board[2][20] = 0,board[2][21] = 0,board[2][22] = 0,board[2][23] = 0,board[2][24] = 0,board[2][2] = 0,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 1,board[3][0] = 0,board[3][10] = 0,board[3][11] = 0,board[3][12] = 0,board[3][13] = 0,board[3][14] = 1,board[3][15] = 1,board[3][16] = 0,board[3][17] = 0,board[3][18] = 0,board[3][19] = 0,board[3][1] = 0,board[3][20] = 0,board[3][21] = 0,board[3][22] = 0,board[3][23] = 0,board[3][24] = 0,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 0,board[3][6] = 0,board[3][7] = 0,board[3][8] = 1,board[3][9] = 1,board[4][0] = 0,board[4][10] = 1,board[4][11] = 1,board[4][12] = 0,board[4][13] = 0,board[4][14] = 0,board[4][15] = 0,board[4][16] = 0,board[4][17] = 0,board[4][18] = 0,board[4][19] = 0,board[4][1] = 0,board[4][20] = 0,board[4][21] = 0,board[4][22] = 0,board[4][23] = 0,board[4][24] = 0,board[4][2] = 0,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 0,board[4][7] = 1,board[4][8] = 1,board[4][9] = 0,board[5][0] = 0,board[5][10] = 1,board[5][11] = 1,board[5][12] = 1,board[5][13] = 1,board[5][14] = 0,board[5][15] = 0,board[5][16] = 0,board[5][17] = 0,board[5][18] = 0,board[5][19] = 0,board[5][1] = 0,board[5][20] = 0,board[5][21] = 0,board[5][22] = 0,board[5][23] = 0,board[5][24] = 0,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 0,board[5][6] = 1,board[5][7] = 1,board[5][8] = 0,board[5][9] = 1,board[6][0] = 0,board[6][10] = 0,board[6][11] = 0,board[6][12] = 0,board[6][13] = 1,board[6][14] = 1,board[6][15] = 1,board[6][16] = 0,board[6][17] = 0,board[6][18] = 0,board[6][19] = 0,board[6][1] = 0,board[6][20] = 0,board[6][21] = 0,board[6][22] = 0,board[6][23] = 0,board[6][24] = 0,board[6][2] = 0,board[6][3] = 0,board[6][4] = 0,board[6][5] = 1,board[6][6] = 1,board[6][7] = 0,board[6][8] = 1,board[6][9] = 1,board[7][0] = 0,board[7][10] = 0,board[7][11] = 0,board[7][12] = 0,board[7][13] = 0,board[7][14] = 0,board[7][15] = 1,board[7][16] = 1,board[7][17] = 1,board[7][18] = 0,board[7][19] = 0,board[7][1] = 0,board[7][20] = 0,board[7][21] = 0,board[7][22] = 0,board[7][23] = 0,board[7][24] = 0,board[7][2] = 0,board[7][3] = 0,board[7][4] = 1,board[7][5] = 1,board[7][6] = 0,board[7][7] = 1,board[7][8] = 1,board[7][9] = 0,board[8][0] = 0,board[8][10] = 0,board[8][11] = 0,board[8][12] = 0,board[8][13] = 0,board[8][14] = 0,board[8][15] = 0,board[8][16] = 0,board[8][17] = 1,board[8][18] = 1,board[8][19] = 1,board[8][1] = 0,board[8][20] = 0,board[8][21] = 0,board[8][22] = 0,board[8][23] = 0,board[8][24] = 0,board[8][2] = 0,board[8][3] = 1,board[8][4] = 1,board[8][5] = 0,board[8][6] = 0,board[8][7] = 0,board[8][8] = 0,board[8][9] = 0,board[9][0] = 0,board[9][10] = 0,board[9][11] = 0,board[9][12] = 0,board[9][13] = 0,board[9][14] = 0,board[9][15] = 0,board[9][16] = 0,board[9][17] = 0,board[9][18] = 0,board[9][19] = 1,board[9][1] = 0,board[9][20] = 1,board[9][21] = 1,board[9][22] = 0,board[9][23] = 0,board[9][24] = 0,board[9][2] = 1,board[9][3] = 1,board[9][4] = 0,board[9][5] = 0,board[9][6] = 0,board[9][7] = 0,board[9][8] = 0,board[9][9] = 0]", 124 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 0,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][20] = 1,board[0][21] = 0,board[0][22] = 0,board[0][23] = 0,board[0][24] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 0,board[10][10] = 0,board[10][11] = 0,board[10][12] = 0,board[10][13] = 0,board[10][14] = 0,board[10][15] = 0,board[10][16] = 0,board[10][17] = 0,board[10][18] = 0,board[10][19] = 1,board[10][1] = 0,board[10][20] = 1,board[10][21] = 1,board[10][22] = 0,board[10][23] = 0,board[10][24] = 0,board[10][2] = 0,board[10][3] = 1,board[10][4] = 1,board[10][5] = 1,board[10][6] = 0,board[10][7] = 0,board[10][8] = 0,board[10][9] = 0,board[11][0] = 0,board[11][10] = 0,board[11][11] = 0,board[11][12] = 0,board[11][13] = 0,board[11][14] = 0,board[11][15] = 0,board[11][16] = 0,board[11][17] = 0,board[11][18] = 0,board[11][19] = 1,board[11][1] = 0,board[11][20] = 1,board[11][21] = 1,board[11][22] = 0,board[11][23] = 0,board[11][24] = 0,board[11][2] = 0,board[11][3] = 1,board[11][4] = 1,board[11][5] = 1,board[11][6] = 0,board[11][7] = 0,board[11][8] = 0,board[11][9] = 0,board[12][0] = 0,board[12][10] = 0,board[12][11] = 0,board[12][12] = 0,board[12][13] = 0,board[12][14] = 0,board[12][15] = 0,board[12][16] = 0,board[12][17] = 0,board[12][18] = 0,board[12][19] = 1,board[12][1] = 0,board[12][20] = 1,board[12][21] = 1,board[12][22] = 0,board[12][23] = 0,board[12][24] = 0,board[12][2] = 0,board[12][3] = 1,board[12][4] = 1,board[12][5] = 1,board[12][6] = 0,board[12][7] = 0,board[12][8] = 0,board[12][9] = 0,board[13][0] = 1,board[13][10] = 1,board[13][11] = 1,board[13][12] = 1,board[13][13] = 1,board[13][14] = 1,board[13][15] = 1,board[13][16] = 1,board[13][17] = 1,board[13][18] = 1,board[13][19] = 1,board[13][1] = 0,board[13][20] = 1,board[13][21] = 1,board[13][22] = 0,board[13][23] = 0,board[13][24] = 0,board[13][2] = 1,board[13][3] = 1,board[13][4] = 1,board[13][5] = 1,board[13][6] = 1,board[13][7] = 0,board[13][8] = 0,board[13][9] = 0,board[14][0] = 0,board[14][10] = 1,board[14][11] = 1,board[14][12] = 1,board[14][13] = 1,board[14][14] = 1,board[14][15] = 1,board[14][16] = 1,board[14][17] = 1,board[14][18] = 0,board[14][19] = 1,board[14][1] = 1,board[14][20] = 1,board[14][21] = 1,board[14][22] = 0,board[14][23] = 0,board[14][24] = 0,board[14][2] = 1,board[14][3] = 1,board[14][4] = 1,board[14][5] = 1,board[14][6] = 1,board[14][7] = 1,board[14][8] = 0,board[14][9] = 1,board[15][0] = 0,board[15][10] = 1,board[15][11] = 1,board[15][12] = 1,board[15][13] = 1,board[15][14] = 1,board[15][15] = 1,board[15][16] = 1,board[15][17] = 0,board[15][18] = 1,board[15][19] = 1,board[15][1] = 0,board[15][20] = 1,board[15][21] = 1,board[15][22] = 1,board[15][23] = 0,board[15][24] = 0,board[15][2] = 0,board[15][3] = 0,board[15][4] = 0,board[15][5] = 0,board[15][6] = 0,board[15][7] = 0,board[15][8] = 1,board[15][9] = 1,board[16][0] = 0,board[16][10] = 1,board[16][11] = 1,board[16][12] = 1,board[16][13] = 1,board[16][14] = 1,board[16][15] = 1,board[16][16] = 0,board[16][17] = 1,board[16][18] = 1,board[16][19] = 1,board[16][1] = 0,board[16][20] = 1,board[16][21] = 1,board[16][22] = 1,board[16][23] = 1,board[16][24] = 0,board[16][2] = 0,board[16][3] = 0,board[16][4] = 0,board[16][5] = 0,board[16][6] = 0,board[16][7] = 1,board[16][8] = 1,board[16][9] = 1,board[17][0] = 0,board[17][10] = 1,board[17][11] = 1,board[17][12] = 1,board[17][13] = 1,board[17][14] = 1,board[17][15] = 0,board[17][16] = 0,board[17][17] = 0,board[17][18] = 0,board[17][19] = 0,board[17][1] = 0,board[17][20] = 0,board[17][21] = 0,board[17][22] = 0,board[17][23] = 0,board[17][24] = 1,board[17][2] = 0,board[17][3] = 0,board[17][4] = 0,board[17][5] = 0,board[17][6] = 1,board[17][7] = 1,board[17][8] = 1,board[17][9] = 1,board[18][0] = 1,board[18][10] = 0,board[18][11] = 0,board[18][12] = 0,board[18][13] = 0,board[18][14] = 0,board[18][15] = 1,board[18][16] = 1,board[18][17] = 1,board[18][18] = 1,board[18][19] = 1,board[18][1] = 1,board[18][20] = 1,board[18][21] = 1,board[18][22] = 1,board[18][23] = 1,board[18][24] = 0,board[18][2] = 1,board[18][3] = 1,board[18][4] = 1,board[18][5] = 1,board[18][6] = 0,board[18][7] = 0,board[18][8] = 0,board[18][9] = 0,board[19][0] = 1,board[19][10] = 0,board[19][11] = 0,board[19][12] = 0,board[19][13] = 0,board[19][14] = 1,board[19][15] = 1,board[19][16] = 1,board[19][17] = 1,board[19][18] = 1,board[19][19] = 1,board[19][1] = 1,board[19][20] = 1,board[19][21] = 1,board[19][22] = 1,board[19][23] = 0,board[19][24] = 0,board[19][2] = 1,board[19][3] = 1,board[19][4] = 1,board[19][5] = 0,board[19][6] = 0,board[19][7] = 0,board[19][8] = 0,board[19][9] = 0,board[1][0] = 0,board[1][10] = 0,board[1][11] = 0,board[1][12] = 0,board[1][13] = 0,board[1][14] = 0,board[1][15] = 0,board[1][16] = 0,board[1][17] = 0,board[1][18] = 0,board[1][19] = 1,board[1][1] = 0,board[1][20] = 1,board[1][21] = 1,board[1][22] = 0,board[1][23] = 0,board[1][24] = 0,board[1][2] = 0,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[20][0] = 1,board[20][10] = 0,board[20][11] = 0,board[20][12] = 0,board[20][13] = 1,board[20][14] = 1,board[20][15] = 1,board[20][16] = 1,board[20][17] = 1,board[20][18] = 1,board[20][19] = 1,board[20][1] = 1,board[20][20] = 1,board[20][21] = 1,board[20][22] = 0,board[20][23] = 0,board[20][24] = 0,board[20][2] = 1,board[20][3] = 1,board[20][4] = 0,board[20][5] = 0,board[20][6] = 0,board[20][7] = 0,board[20][8] = 0,board[20][9] = 0,board[21][0] = 1,board[21][10] = 0,board[21][11] = 0,board[21][12] = 1,board[21][13] = 1,board[21][14] = 1,board[21][15] = 1,board[21][16] = 1,board[21][17] = 1,board[21][18] = 1,board[21][19] = 1,board[21][1] = 1,board[21][20] = 1,board[21][21] = 0,board[21][22] = 0,board[21][23] = 0,board[21][24] = 0,board[21][2] = 1,board[21][3] = 0,board[21][4] = 0,board[21][5] = 0,board[21][6] = 0,board[21][7] = 0,board[21][8] = 0,board[21][9] = 0,board[22][0] = 1,board[22][10] = 0,board[22][11] = 1,board[22][12] = 1,board[22][13] = 1,board[22][14] = 1,board[22][15] = 1,board[22][16] = 1,board[22][17] = 1,board[22][18] = 1,board[22][19] = 1,board[22][1] = 1,board[22][20] = 0,board[22][21] = 0,board[22][22] = 0,board[22][23] = 0,board[22][24] = 0,board[22][2] = 0,board[22][3] = 0,board[22][4] = 0,board[22][5] = 0,board[22][6] = 0,board[22][7] = 0,board[22][8] = 0,board[22][9] = 0,board[23][0] = 0,board[23][10] = 1,board[23][11] = 0,board[23][12] = 0,board[23][13] = 0,board[23][14] = 0,board[23][15] = 0,board[23][16] = 0,board[23][17] = 0,board[23][18] = 0,board[23][19] = 0,board[23][1] = 0,board[23][20] = 1,board[23][21] = 1,board[23][22] = 1,board[23][23] = 1,board[23][24] = 1,board[23][2] = 1,board[23][3] = 1,board[23][4] = 1,board[23][5] = 1,board[23][6] = 1,board[23][7] = 1,board[23][8] = 1,board[23][9] = 1,board[24][0] = 0,board[24][10] = 0,board[24][11] = 0,board[24][12] = 0,board[24][13] = 0,board[24][14] = 0,board[24][15] = 0,board[24][16] = 0,board[24][17] = 0,board[24][18] = 0,board[24][19] = 1,board[24][1] = 1,board[24][20] = 1,board[24][21] = 1,board[24][22] = 1,board[24][23] = 1,board[24][24] = 1,board[24][2] = 1,board[24][3] = 1,board[24][4] = 1,board[24][5] = 1,board[24][6] = 1,board[24][7] = 1,board[24][8] = 1,board[24][9] = 1,board[2][0] = 0,board[2][10] = 0,board[2][11] = 0,board[2][12] = 0,board[2][13] = 0,board[2][14] = 0,board[2][15] = 0,board[2][16] = 0,board[2][17] = 0,board[2][18] = 1,board[2][19] = 1,board[2][1] = 0,board[2][20] = 1,board[2][21] = 1,board[2][22] = 1,board[2][23] = 0,board[2][24] = 0,board[2][2] = 0,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 0,board[3][0] = 0,board[3][10] = 0,board[3][11] = 0,board[3][12] = 0,board[3][13] = 0,board[3][14] = 0,board[3][15] = 0,board[3][16] = 0,board[3][17] = 0,board[3][18] = 1,board[3][19] = 1,board[3][1] = 1,board[3][20] = 1,board[3][21] = 1,board[3][22] = 1,board[3][23] = 0,board[3][24] = 0,board[3][2] = 0,board[3][3] = 1,board[3][4] = 0,board[3][5] = 1,board[3][6] = 0,board[3][7] = 1,board[3][8] = 0,board[3][9] = 0,board[4][0] = 0,board[4][10] = 0,board[4][11] = 0,board[4][12] = 0,board[4][13] = 0,board[4][14] = 0,board[4][15] = 0,board[4][16] = 0,board[4][17] = 0,board[4][18] = 0,board[4][19] = 1,board[4][1] = 1,board[4][20] = 1,board[4][21] = 1,board[4][22] = 0,board[4][23] = 0,board[4][24] = 0,board[4][2] = 1,board[4][3] = 1,board[4][4] = 1,board[4][5] = 1,board[4][6] = 1,board[4][7] = 1,board[4][8] = 0,board[4][9] = 0,board[5][0] = 0,board[5][10] = 0,board[5][11] = 0,board[5][12] = 0,board[5][13] = 0,board[5][14] = 0,board[5][15] = 0,board[5][16] = 0,board[5][17] = 0,board[5][18] = 1,board[5][19] = 1,board[5][1] = 1,board[5][20] = 1,board[5][21] = 1,board[5][22] = 1,board[5][23] = 0,board[5][24] = 0,board[5][2] = 1,board[5][3] = 1,board[5][4] = 1,board[5][5] = 1,board[5][6] = 1,board[5][7] = 1,board[5][8] = 0,board[5][9] = 0,board[6][0] = 0,board[6][10] = 0,board[6][11] = 0,board[6][12] = 0,board[6][13] = 0,board[6][14] = 0,board[6][15] = 0,board[6][16] = 0,board[6][17] = 1,board[6][18] = 1,board[6][19] = 1,board[6][1] = 0,board[6][20] = 1,board[6][21] = 1,board[6][22] = 1,board[6][23] = 1,board[6][24] = 0,board[6][2] = 1,board[6][3] = 1,board[6][4] = 1,board[6][5] = 1,board[6][6] = 1,board[6][7] = 0,board[6][8] = 0,board[6][9] = 0,board[7][0] = 0,board[7][10] = 0,board[7][11] = 0,board[7][12] = 0,board[7][13] = 0,board[7][14] = 0,board[7][15] = 0,board[7][16] = 0,board[7][17] = 0,board[7][18] = 1,board[7][19] = 1,board[7][1] = 0,board[7][20] = 1,board[7][21] = 1,board[7][22] = 1,board[7][23] = 0,board[7][24] = 0,board[7][2] = 0,board[7][3] = 1,board[7][4] = 1,board[7][5] = 1,board[7][6] = 0,board[7][7] = 0,board[7][8] = 0,board[7][9] = 0,board[8][0] = 0,board[8][10] = 0,board[8][11] = 0,board[8][12] = 0,board[8][13] = 0,board[8][14] = 0,board[8][15] = 0,board[8][16] = 0,board[8][17] = 0,board[8][18] = 0,board[8][19] = 1,board[8][1] = 0,board[8][20] = 1,board[8][21] = 1,board[8][22] = 0,board[8][23] = 0,board[8][24] = 0,board[8][2] = 0,board[8][3] = 1,board[8][4] = 1,board[8][5] = 1,board[8][6] = 0,board[8][7] = 0,board[8][8] = 0,board[8][9] = 0,board[9][0] = 0,board[9][10] = 0,board[9][11] = 0,board[9][12] = 0,board[9][13] = 0,board[9][14] = 0,board[9][15] = 0,board[9][16] = 0,board[9][17] = 0,board[9][18] = 0,board[9][19] = 1,board[9][1] = 0,board[9][20] = 1,board[9][21] = 1,board[9][22] = 0,board[9][23] = 0,board[9][24] = 0,board[9][2] = 0,board[9][3] = 1,board[9][4] = 1,board[9][5] = 1,board[9][6] = 0,board[9][7] = 0,board[9][8] = 0,board[9][9] = 0]", 125 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 0,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 1,board[0][17] = 1,board[0][18] = 1,board[0][19] = 1,board[0][1] = 0,board[0][20] = 1,board[0][21] = 1,board[0][22] = 0,board[0][23] = 0,board[0][24] = 0,board[0][25] = 0,board[0][26] = 0,board[0][27] = 0,board[0][28] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 0,board[10][10] = 1,board[10][11] = 0,board[10][12] = 1,board[10][13] = 1,board[10][14] = 0,board[10][15] = 0,board[10][16] = 0,board[10][17] = 0,board[10][18] = 0,board[10][19] = 1,board[10][1] = 1,board[10][20] = 1,board[10][21] = 1,board[10][22] = 1,board[10][23] = 1,board[10][24] = 1,board[10][25] = 1,board[10][26] = 1,board[10][27] = 1,board[10][28] = 1,board[10][2] = 1,board[10][3] = 0,board[10][4] = 0,board[10][5] = 0,board[10][6] = 1,board[10][7] = 1,board[10][8] = 1,board[10][9] = 1,board[11][0] = 1,board[11][10] = 1,board[11][11] = 1,board[11][12] = 0,board[11][13] = 1,board[11][14] = 1,board[11][15] = 0,board[11][16] = 0,board[11][17] = 0,board[11][18] = 0,board[11][19] = 0,board[11][1] = 1,board[11][20] = 1,board[11][21] = 1,board[11][22] = 1,board[11][23] = 1,board[11][24] = 1,board[11][25] = 1,board[11][26] = 1,board[11][27] = 1,board[11][28] = 1,board[11][2] = 0,board[11][3] = 1,board[11][4] = 1,board[11][5] = 1,board[11][6] = 0,board[11][7] = 1,board[11][8] = 1,board[11][9] = 1,board[12][0] = 1,board[12][10] = 1,board[12][11] = 1,board[12][12] = 1,board[12][13] = 0,board[12][14] = 1,board[12][15] = 1,board[12][16] = 0,board[12][17] = 1,board[12][18] = 1,board[12][19] = 0,board[12][1] = 0,board[12][20] = 1,board[12][21] = 1,board[12][22] = 1,board[12][23] = 1,board[12][24] = 1,board[12][25] = 1,board[12][26] = 1,board[12][27] = 1,board[12][28] = 1,board[12][2] = 1,board[12][3] = 1,board[12][4] = 1,board[12][5] = 1,board[12][6] = 1,board[12][7] = 0,board[12][8] = 1,board[12][9] = 1,board[13][0] = 1,board[13][10] = 1,board[13][11] = 1,board[13][12] = 1,board[13][13] = 0,board[13][14] = 1,board[13][15] = 1,board[13][16] = 0,board[13][17] = 1,board[13][18] = 1,board[13][19] = 0,board[13][1] = 0,board[13][20] = 1,board[13][21] = 1,board[13][22] = 1,board[13][23] = 1,board[13][24] = 1,board[13][25] = 1,board[13][26] = 1,board[13][27] = 1,board[13][28] = 1,board[13][2] = 1,board[13][3] = 1,board[13][4] = 1,board[13][5] = 1,board[13][6] = 1,board[13][7] = 0,board[13][8] = 1,board[13][9] = 1,board[14][0] = 1,board[14][10] = 1,board[14][11] = 1,board[14][12] = 1,board[14][13] = 0,board[14][14] = 1,board[14][15] = 1,board[14][16] = 0,board[14][17] = 0,board[14][18] = 0,board[14][19] = 0,board[14][1] = 0,board[14][20] = 1,board[14][21] = 1,board[14][22] = 1,board[14][23] = 1,board[14][24] = 1,board[14][25] = 1,board[14][26] = 1,board[14][27] = 1,board[14][28] = 1,board[14][2] = 1,board[14][3] = 1,board[14][4] = 1,board[14][5] = 1,board[14][6] = 1,board[14][7] = 0,board[14][8] = 1,board[14][9] = 1,board[15][0] = 1,board[15][10] = 1,board[15][11] = 1,board[15][12] = 1,board[15][13] = 0,board[15][14] = 1,board[15][15] = 1,board[15][16] = 0,board[15][17] = 0,board[15][18] = 0,board[15][19] = 0,board[15][1] = 0,board[15][20] = 1,board[15][21] = 1,board[15][22] = 1,board[15][23] = 1,board[15][24] = 1,board[15][25] = 1,board[15][26] = 1,board[15][27] = 1,board[15][28] = 1,board[15][2] = 1,board[15][3] = 1,board[15][4] = 1,board[15][5] = 1,board[15][6] = 1,board[15][7] = 0,board[15][8] = 1,board[15][9] = 1,board[16][0] = 1,board[16][10] = 1,board[16][11] = 1,board[16][12] = 1,board[16][13] = 0,board[16][14] = 1,board[16][15] = 1,board[16][16] = 0,board[16][17] = 0,board[16][18] = 0,board[16][19] = 0,board[16][1] = 0,board[16][20] = 1,board[16][21] = 1,board[16][22] = 1,board[16][23] = 1,board[16][24] = 1,board[16][25] = 1,board[16][26] = 1,board[16][27] = 1,board[16][28] = 1,board[16][2] = 1,board[16][3] = 1,board[16][4] = 1,board[16][5] = 1,board[16][6] = 1,board[16][7] = 0,board[16][8] = 1,board[16][9] = 1,board[17][0] = 1,board[17][10] = 1,board[17][11] = 1,board[17][12] = 0,board[17][13] = 1,board[17][14] = 1,board[17][15] = 0,board[17][16] = 0,board[17][17] = 0,board[17][18] = 0,board[17][19] = 0,board[17][1] = 1,board[17][20] = 1,board[17][21] = 1,board[17][22] = 1,board[17][23] = 1,board[17][24] = 1,board[17][25] = 1,board[17][26] = 1,board[17][27] = 1,board[17][28] = 1,board[17][2] = 0,board[17][3] = 1,board[17][4] = 1,board[17][5] = 1,board[17][6] = 0,board[17][7] = 1,board[17][8] = 1,board[17][9] = 1,board[18][0] = 0,board[18][10] = 1,board[18][11] = 0,board[18][12] = 1,board[18][13] = 1,board[18][14] = 0,board[18][15] = 0,board[18][16] = 0,board[18][17] = 0,board[18][18] = 0,board[18][19] = 0,board[18][1] = 1,board[18][20] = 1,board[18][21] = 1,board[18][22] = 1,board[18][23] = 1,board[18][24] = 1,board[18][25] = 1,board[18][26] = 1,board[18][27] = 1,board[18][28] = 1,board[18][2] = 1,board[18][3] = 0,board[18][4] = 0,board[18][5] = 0,board[18][6] = 1,board[18][7] = 1,board[18][8] = 1,board[18][9] = 1,board[19][0] = 0,board[19][10] = 1,board[19][11] = 1,board[19][12] = 1,board[19][13] = 1,board[19][14] = 1,board[19][15] = 1,board[19][16] = 0,board[19][17] = 0,board[19][18] = 0,board[19][19] = 0,board[19][1] = 0,board[19][20] = 1,board[19][21] = 1,board[19][22] = 1,board[19][23] = 1,board[19][24] = 1,board[19][25] = 1,board[19][26] = 1,board[19][27] = 1,board[19][28] = 1,board[19][2] = 1,board[19][3] = 1,board[19][4] = 1,board[19][5] = 1,board[19][6] = 1,board[19][7] = 1,board[19][8] = 1,board[19][9] = 1,board[1][0] = 0,board[1][10] = 0,board[1][11] = 0,board[1][12] = 0,board[1][13] = 0,board[1][14] = 0,board[1][15] = 1,board[1][16] = 1,board[1][17] = 0,board[1][18] = 0,board[1][19] = 1,board[1][1] = 0,board[1][20] = 1,board[1][21] = 1,board[1][22] = 1,board[1][23] = 0,board[1][24] = 0,board[1][25] = 0,board[1][26] = 0,board[1][27] = 0,board[1][28] = 0,board[1][2] = 0,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[20][0] = 0,board[20][10] = 0,board[20][11] = 0,board[20][12] = 0,board[20][13] = 0,board[20][14] = 0,board[20][15] = 1,board[20][16] = 1,board[20][17] = 1,board[20][18] = 0,board[20][19] = 0,board[20][1] = 0,board[20][20] = 1,board[20][21] = 1,board[20][22] = 1,board[20][23] = 1,board[20][24] = 1,board[20][25] = 1,board[20][26] = 1,board[20][27] = 1,board[20][28] = 1,board[20][2] = 0,board[20][3] = 0,board[20][4] = 0,board[20][5] = 0,board[20][6] = 0,board[20][7] = 0,board[20][8] = 0,board[20][9] = 0,board[21][0] = 0,board[21][10] = 0,board[21][11] = 0,board[21][12] = 0,board[21][13] = 0,board[21][14] = 0,board[21][15] = 0,board[21][16] = 0,board[21][17] = 1,board[21][18] = 1,board[21][19] = 1,board[21][1] = 0,board[21][20] = 1,board[21][21] = 1,board[21][22] = 1,board[21][23] = 1,board[21][24] = 1,board[21][25] = 1,board[21][26] = 1,board[21][27] = 1,board[21][28] = 1,board[21][2] = 0,board[21][3] = 0,board[21][4] = 0,board[21][5] = 0,board[21][6] = 0,board[21][7] = 0,board[21][8] = 0,board[21][9] = 0,board[22][0] = 0,board[22][10] = 0,board[22][11] = 0,board[22][12] = 0,board[22][13] = 0,board[22][14] = 0,board[22][15] = 0,board[22][16] = 0,board[22][17] = 0,board[22][18] = 0,board[22][19] = 1,board[22][1] = 0,board[22][20] = 1,board[22][21] = 1,board[22][22] = 1,board[22][23] = 1,board[22][24] = 1,board[22][25] = 1,board[22][26] = 1,board[22][27] = 1,board[22][28] = 1,board[22][2] = 0,board[22][3] = 0,board[22][4] = 0,board[22][5] = 0,board[22][6] = 0,board[22][7] = 0,board[22][8] = 0,board[22][9] = 0,board[2][0] = 0,board[2][10] = 1,board[2][11] = 1,board[2][12] = 0,board[2][13] = 0,board[2][14] = 1,board[2][15] = 1,board[2][16] = 0,board[2][17] = 0,board[2][18] = 0,board[2][19] = 0,board[2][1] = 0,board[2][20] = 0,board[2][21] = 1,board[2][22] = 1,board[2][23] = 0,board[2][24] = 0,board[2][25] = 0,board[2][26] = 0,board[2][27] = 0,board[2][28] = 0,board[2][2] = 0,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 0,board[3][0] = 0,board[3][10] = 1,board[3][11] = 1,board[3][12] = 1,board[3][13] = 1,board[3][14] = 1,board[3][15] = 0,board[3][16] = 0,board[3][17] = 0,board[3][18] = 0,board[3][19] = 0,board[3][1] = 0,board[3][20] = 1,board[3][21] = 1,board[3][22] = 1,board[3][23] = 0,board[3][24] = 0,board[3][25] = 0,board[3][26] = 0,board[3][27] = 0,board[3][28] = 0,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 0,board[3][6] = 1,board[3][7] = 1,board[3][8] = 1,board[3][9] = 1,board[4][0] = 0,board[4][10] = 0,board[4][11] = 0,board[4][12] = 1,board[4][13] = 1,board[4][14] = 0,board[4][15] = 0,board[4][16] = 0,board[4][17] = 0,board[4][18] = 0,board[4][19] = 1,board[4][1] = 0,board[4][20] = 1,board[4][21] = 1,board[4][22] = 1,board[4][23] = 0,board[4][24] = 0,board[4][25] = 0,board[4][26] = 0,board[4][27] = 0,board[4][28] = 0,board[4][2] = 0,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 1,board[4][7] = 1,board[4][8] = 1,board[4][9] = 1,board[5][0] = 0,board[5][10] = 1,board[5][11] = 1,board[5][12] = 1,board[5][13] = 0,board[5][14] = 0,board[5][15] = 0,board[5][16] = 0,board[5][17] = 0,board[5][18] = 0,board[5][19] = 1,board[5][1] = 0,board[5][20] = 1,board[5][21] = 1,board[5][22] = 1,board[5][23] = 0,board[5][24] = 0,board[5][25] = 0,board[5][26] = 0,board[5][27] = 0,board[5][28] = 0,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 0,board[5][6] = 1,board[5][7] = 0,board[5][8] = 0,board[5][9] = 1,board[6][0] = 0,board[6][10] = 0,board[6][11] = 1,board[6][12] = 1,board[6][13] = 1,board[6][14] = 0,board[6][15] = 0,board[6][16] = 0,board[6][17] = 0,board[6][18] = 1,board[6][19] = 1,board[6][1] = 0,board[6][20] = 1,board[6][21] = 1,board[6][22] = 1,board[6][23] = 1,board[6][24] = 0,board[6][25] = 0,board[6][26] = 0,board[6][27] = 0,board[6][28] = 0,board[6][2] = 0,board[6][3] = 0,board[6][4] = 0,board[6][5] = 0,board[6][6] = 1,board[6][7] = 0,board[6][8] = 0,board[6][9] = 0,board[7][0] = 0,board[7][10] = 0,board[7][11] = 0,board[7][12] = 0,board[7][13] = 1,board[7][14] = 1,board[7][15] = 1,board[7][16] = 0,board[7][17] = 1,board[7][18] = 1,board[7][19] = 1,board[7][1] = 0,board[7][20] = 1,board[7][21] = 1,board[7][22] = 1,board[7][23] = 1,board[7][24] = 1,board[7][25] = 1,board[7][26] = 0,board[7][27] = 0,board[7][28] = 0,board[7][2] = 0,board[7][3] = 0,board[7][4] = 0,board[7][5] = 0,board[7][6] = 1,board[7][7] = 0,board[7][8] = 0,board[7][9] = 0,board[8][0] = 0,board[8][10] = 0,board[8][11] = 0,board[8][12] = 0,board[8][13] = 0,board[8][14] = 0,board[8][15] = 1,board[8][16] = 1,board[8][17] = 1,board[8][18] = 0,board[8][19] = 0,board[8][1] = 0,board[8][20] = 0,board[8][21] = 0,board[8][22] = 0,board[8][23] = 0,board[8][24] = 1,board[8][25] = 1,board[8][26] = 1,board[8][27] = 1,board[8][28] = 0,board[8][2] = 0,board[8][3] = 1,board[8][4] = 1,board[8][5] = 1,board[8][6] = 1,board[8][7] = 0,board[8][8] = 0,board[8][9] = 0,board[9][0] = 0,board[9][10] = 1,board[9][11] = 1,board[9][12] = 1,board[9][13] = 0,board[9][14] = 0,board[9][15] = 0,board[9][16] = 0,board[9][17] = 1,board[9][18] = 1,board[9][19] = 1,board[9][1] = 0,board[9][20] = 0,board[9][21] = 0,board[9][22] = 0,board[9][23] = 0,board[9][24] = 0,board[9][25] = 0,board[9][26] = 1,board[9][27] = 1,board[9][28] = 1,board[9][2] = 1,board[9][3] = 1,board[9][4] = 1,board[9][5] = 1,board[9][6] = 1,board[9][7] = 1,board[9][8] = 1,board[9][9] = 1]", 126 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 1,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 0,board[10][10] = 1,board[10][11] = 0,board[10][12] = 0,board[10][13] = 1,board[10][14] = 0,board[10][15] = 1,board[10][16] = 0,board[10][17] = 1,board[10][18] = 1,board[10][19] = 0,board[10][1] = 1,board[10][2] = 0,board[10][3] = 1,board[10][4] = 1,board[10][5] = 0,board[10][6] = 1,board[10][7] = 1,board[10][8] = 0,board[10][9] = 0,board[11][0] = 0,board[11][10] = 0,board[11][11] = 1,board[11][12] = 0,board[11][13] = 1,board[11][14] = 1,board[11][15] = 1,board[11][16] = 1,board[11][17] = 0,board[11][18] = 1,board[11][19] = 0,board[11][1] = 1,board[11][2] = 1,board[11][3] = 0,board[11][4] = 1,board[11][5] = 1,board[11][6] = 1,board[11][7] = 1,board[11][8] = 0,board[11][9] = 1,board[12][0] = 0,board[12][10] = 0,board[12][11] = 1,board[12][12] = 0,board[12][13] = 1,board[12][14] = 1,board[12][15] = 0,board[12][16] = 1,board[12][17] = 1,board[12][18] = 1,board[12][19] = 0,board[12][1] = 1,board[12][2] = 1,board[12][3] = 1,board[12][4] = 1,board[12][5] = 0,board[12][6] = 1,board[12][7] = 1,board[12][8] = 0,board[12][9] = 1,board[13][0] = 0,board[13][10] = 0,board[13][11] = 1,board[13][12] = 0,board[13][13] = 1,board[13][14] = 0,board[13][15] = 1,board[13][16] = 1,board[13][17] = 0,board[13][18] = 1,board[13][19] = 0,board[13][1] = 1,board[13][2] = 0,board[13][3] = 1,board[13][4] = 0,board[13][5] = 1,board[13][6] = 1,board[13][7] = 1,board[13][8] = 0,board[13][9] = 1,board[14][0] = 0,board[14][10] = 0,board[14][11] = 1,board[14][12] = 0,board[14][13] = 1,board[14][14] = 1,board[14][15] = 1,board[14][16] = 1,board[14][17] = 1,board[14][18] = 1,board[14][19] = 0,board[14][1] = 1,board[14][2] = 1,board[14][3] = 1,board[14][4] = 1,board[14][5] = 1,board[14][6] = 1,board[14][7] = 1,board[14][8] = 0,board[14][9] = 1,board[1][0] = 1,board[1][10] = 0,board[1][11] = 1,board[1][12] = 1,board[1][13] = 0,board[1][14] = 0,board[1][15] = 1,board[1][16] = 0,board[1][17] = 1,board[1][18] = 0,board[1][19] = 1,board[1][1] = 0,board[1][2] = 1,board[1][3] = 0,board[1][4] = 1,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[2][0] = 1,board[2][10] = 1,board[2][11] = 0,board[2][12] = 1,board[2][13] = 0,board[2][14] = 0,board[2][15] = 1,board[2][16] = 1,board[2][17] = 1,board[2][18] = 1,board[2][19] = 1,board[2][1] = 1,board[2][2] = 1,board[2][3] = 1,board[2][4] = 1,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 1,board[3][0] = 1,board[3][10] = 0,board[3][11] = 0,board[3][12] = 1,board[3][13] = 0,board[3][14] = 0,board[3][15] = 1,board[3][16] = 1,board[3][17] = 0,board[3][18] = 1,board[3][19] = 1,board[3][1] = 1,board[3][2] = 0,board[3][3] = 1,board[3][4] = 1,board[3][5] = 0,board[3][6] = 0,board[3][7] = 0,board[3][8] = 0,board[3][9] = 0,board[4][0] = 0,board[4][10] = 0,board[4][11] = 0,board[4][12] = 1,board[4][13] = 0,board[4][14] = 0,board[4][15] = 0,board[4][16] = 1,board[4][17] = 1,board[4][18] = 1,board[4][19] = 0,board[4][1] = 1,board[4][2] = 1,board[4][3] = 1,board[4][4] = 0,board[4][5] = 0,board[4][6] = 0,board[4][7] = 0,board[4][8] = 0,board[4][9] = 0,board[5][0] = 0,board[5][10] = 0,board[5][11] = 1,board[5][12] = 1,board[5][13] = 1,board[5][14] = 0,board[5][15] = 0,board[5][16] = 1,board[5][17] = 1,board[5][18] = 1,board[5][19] = 0,board[5][1] = 1,board[5][2] = 1,board[5][3] = 1,board[5][4] = 0,board[5][5] = 0,board[5][6] = 1,board[5][7] = 1,board[5][8] = 1,board[5][9] = 0,board[6][0] = 0,board[6][10] = 1,board[6][11] = 1,board[6][12] = 1,board[6][13] = 0,board[6][14] = 1,board[6][15] = 1,board[6][16] = 1,board[6][17] = 0,board[6][18] = 1,board[6][19] = 0,board[6][1] = 1,board[6][2] = 1,board[6][3] = 0,board[6][4] = 1,board[6][5] = 1,board[6][6] = 1,board[6][7] = 1,board[6][8] = 0,board[6][9] = 1,board[7][0] = 0,board[7][10] = 1,board[7][11] = 0,board[7][12] = 1,board[7][13] = 1,board[7][14] = 1,board[7][15] = 0,board[7][16] = 1,board[7][17] = 1,board[7][18] = 1,board[7][19] = 0,board[7][1] = 1,board[7][2] = 0,board[7][3] = 1,board[7][4] = 1,board[7][5] = 1,board[7][6] = 0,board[7][7] = 1,board[7][8] = 1,board[7][9] = 1,board[8][0] = 0,board[8][10] = 1,board[8][11] = 1,board[8][12] = 1,board[8][13] = 0,board[8][14] = 1,board[8][15] = 1,board[8][16] = 0,board[8][17] = 1,board[8][18] = 1,board[8][19] = 0,board[8][1] = 1,board[8][2] = 1,board[8][3] = 1,board[8][4] = 0,board[8][5] = 1,board[8][6] = 1,board[8][7] = 0,board[8][8] = 1,board[8][9] = 1,board[9][0] = 0,board[9][10] = 0,board[9][11] = 0,board[9][12] = 1,board[9][13] = 1,board[9][14] = 1,board[9][15] = 1,board[9][16] = 1,board[9][17] = 1,board[9][18] = 1,board[9][19] = 0,board[9][1] = 1,board[9][2] = 1,board[9][3] = 1,board[9][4] = 1,board[9][5] = 1,board[9][6] = 1,board[9][7] = 1,board[9][8] = 1,board[9][9] = 0]", 127 "[board[0][0] = 0,board[0][10] = 1,board[0][11] = 0,board[0][12] = 0,board[0][13] = 0,board[0][14] = 1,board[0][15] = 0,board[0][16] = 0,board[0][17] = 1,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][20] = 0,board[0][21] = 0,board[0][22] = 0,board[0][23] = 1,board[0][24] = 1,board[0][25] = 1,board[0][26] = 1,board[0][27] = 1,board[0][28] = 0,board[0][29] = 0,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 1,board[0][8] = 1,board[0][9] = 1,board[10][0] = 0,board[10][10] = 1,board[10][11] = 1,board[10][12] = 1,board[10][13] = 1,board[10][14] = 0,board[10][15] = 0,board[10][16] = 0,board[10][17] = 1,board[10][18] = 1,board[10][19] = 1,board[10][1] = 0,board[10][20] = 1,board[10][21] = 1,board[10][22] = 0,board[10][23] = 0,board[10][24] = 0,board[10][25] = 0,board[10][26] = 0,board[10][27] = 0,board[10][28] = 0,board[10][29] = 0,board[10][2] = 1,board[10][3] = 1,board[10][4] = 1,board[10][5] = 1,board[10][6] = 0,board[10][7] = 0,board[10][8] = 1,board[10][9] = 1,board[11][0] = 0,board[11][10] = 0,board[11][11] = 1,board[11][12] = 1,board[11][13] = 0,board[11][14] = 0,board[11][15] = 0,board[11][16] = 0,board[11][17] = 1,board[11][18] = 1,board[11][19] = 1,board[11][1] = 1,board[11][20] = 1,board[11][21] = 1,board[11][22] = 0,board[11][23] = 1,board[11][24] = 1,board[11][25] = 1,board[11][26] = 1,board[11][27] = 1,board[11][28] = 0,board[11][29] = 0,board[11][2] = 1,board[11][3] = 1,board[11][4] = 1,board[11][5] = 1,board[11][6] = 0,board[11][7] = 0,board[11][8] = 1,board[11][9] = 1,board[12][0] = 0,board[12][10] = 1,board[12][11] = 1,board[12][12] = 1,board[12][13] = 0,board[12][14] = 0,board[12][15] = 0,board[12][16] = 0,board[12][17] = 1,board[12][18] = 1,board[12][19] = 1,board[12][1] = 1,board[12][20] = 1,board[12][21] = 1,board[12][22] = 1,board[12][23] = 1,board[12][24] = 1,board[12][25] = 1,board[12][26] = 1,board[12][27] = 1,board[12][28] = 1,board[12][29] = 1,board[12][2] = 1,board[12][3] = 1,board[12][4] = 1,board[12][5] = 1,board[12][6] = 1,board[12][7] = 0,board[12][8] = 0,board[12][9] = 0,board[13][0] = 0,board[13][10] = 1,board[13][11] = 1,board[13][12] = 0,board[13][13] = 0,board[13][14] = 0,board[13][15] = 0,board[13][16] = 1,board[13][17] = 1,board[13][18] = 1,board[13][19] = 1,board[13][1] = 1,board[13][20] = 1,board[13][21] = 1,board[13][22] = 1,board[13][23] = 1,board[13][24] = 1,board[13][25] = 0,board[13][26] = 0,board[13][27] = 1,board[13][28] = 1,board[13][29] = 1,board[13][2] = 1,board[13][3] = 0,board[13][4] = 1,board[13][5] = 1,board[13][6] = 1,board[13][7] = 1,board[13][8] = 1,board[13][9] = 1,board[14][0] = 0,board[14][10] = 0,board[14][11] = 0,board[14][12] = 0,board[14][13] = 0,board[14][14] = 0,board[14][15] = 1,board[14][16] = 1,board[14][17] = 1,board[14][18] = 1,board[14][19] = 1,board[14][1] = 1,board[14][20] = 1,board[14][21] = 1,board[14][22] = 1,board[14][23] = 1,board[14][24] = 0,board[14][25] = 0,board[14][26] = 0,board[14][27] = 0,board[14][28] = 1,board[14][29] = 0,board[14][2] = 0,board[14][3] = 0,board[14][4] = 0,board[14][5] = 0,board[14][6] = 1,board[14][7] = 1,board[14][8] = 1,board[14][9] = 1,board[15][0] = 0,board[15][10] = 0,board[15][11] = 0,board[15][12] = 0,board[15][13] = 0,board[15][14] = 1,board[15][15] = 1,board[15][16] = 0,board[15][17] = 1,board[15][18] = 1,board[15][19] = 1,board[15][1] = 1,board[15][20] = 1,board[15][21] = 1,board[15][22] = 1,board[15][23] = 1,board[15][24] = 0,board[15][25] = 0,board[15][26] = 0,board[15][27] = 1,board[15][28] = 1,board[15][29] = 0,board[15][2] = 0,board[15][3] = 0,board[15][4] = 0,board[15][5] = 0,board[15][6] = 0,board[15][7] = 0,board[15][8] = 0,board[15][9] = 0,board[16][0] = 0,board[16][10] = 1,board[16][11] = 0,board[16][12] = 0,board[16][13] = 1,board[16][14] = 1,board[16][15] = 0,board[16][16] = 1,board[16][17] = 1,board[16][18] = 0,board[16][19] = 1,board[16][1] = 1,board[16][20] = 1,board[16][21] = 1,board[16][22] = 1,board[16][23] = 1,board[16][24] = 0,board[16][25] = 0,board[16][26] = 1,board[16][27] = 1,board[16][28] = 0,board[16][29] = 0,board[16][2] = 0,board[16][3] = 0,board[16][4] = 0,board[16][5] = 0,board[16][6] = 0,board[16][7] = 0,board[16][8] = 0,board[16][9] = 0,board[17][0] = 0,board[17][10] = 1,board[17][11] = 1,board[17][12] = 0,board[17][13] = 1,board[17][14] = 1,board[17][15] = 0,board[17][16] = 1,board[17][17] = 1,board[17][18] = 0,board[17][19] = 1,board[17][1] = 1,board[17][20] = 1,board[17][21] = 1,board[17][22] = 1,board[17][23] = 1,board[17][24] = 1,board[17][25] = 1,board[17][26] = 1,board[17][27] = 0,board[17][28] = 0,board[17][29] = 0,board[17][2] = 1,board[17][3] = 0,board[17][4] = 0,board[17][5] = 0,board[17][6] = 0,board[17][7] = 1,board[17][8] = 0,board[17][9] = 0,board[18][0] = 0,board[18][10] = 0,board[18][11] = 0,board[18][12] = 0,board[18][13] = 1,board[18][14] = 1,board[18][15] = 0,board[18][16] = 0,board[18][17] = 0,board[18][18] = 0,board[18][19] = 1,board[18][1] = 0,board[18][20] = 1,board[18][21] = 1,board[18][22] = 1,board[18][23] = 1,board[18][24] = 1,board[18][25] = 0,board[18][26] = 0,board[18][27] = 0,board[18][28] = 0,board[18][29] = 0,board[18][2] = 1,board[18][3] = 0,board[18][4] = 0,board[18][5] = 0,board[18][6] = 0,board[18][7] = 1,board[18][8] = 1,board[18][9] = 1,board[19][0] = 0,board[19][10] = 0,board[19][11] = 0,board[19][12] = 0,board[19][13] = 1,board[19][14] = 1,board[19][15] = 1,board[19][16] = 0,board[19][17] = 0,board[19][18] = 1,board[19][19] = 1,board[19][1] = 0,board[19][20] = 1,board[19][21] = 1,board[19][22] = 1,board[19][23] = 1,board[19][24] = 0,board[19][25] = 0,board[19][26] = 0,board[19][27] = 0,board[19][28] = 0,board[19][29] = 0,board[19][2] = 1,board[19][3] = 1,board[19][4] = 0,board[19][5] = 0,board[19][6] = 0,board[19][7] = 1,board[19][8] = 0,board[19][9] = 1,board[1][0] = 0,board[1][10] = 1,board[1][11] = 1,board[1][12] = 0,board[1][13] = 0,board[1][14] = 1,board[1][15] = 0,board[1][16] = 0,board[1][17] = 1,board[1][18] = 0,board[1][19] = 0,board[1][1] = 0,board[1][20] = 0,board[1][21] = 0,board[1][22] = 1,board[1][23] = 1,board[1][24] = 0,board[1][25] = 0,board[1][26] = 0,board[1][27] = 1,board[1][28] = 1,board[1][29] = 0,board[1][2] = 1,board[1][3] = 1,board[1][4] = 1,board[1][5] = 0,board[1][6] = 0,board[1][7] = 1,board[1][8] = 0,board[1][9] = 1,board[20][0] = 0,board[20][10] = 1,board[20][11] = 0,board[20][12] = 0,board[20][13] = 1,board[20][14] = 1,board[20][15] = 1,board[20][16] = 1,board[20][17] = 1,board[20][18] = 1,board[20][19] = 1,board[20][1] = 0,board[20][20] = 1,board[20][21] = 1,board[20][22] = 1,board[20][23] = 0,board[20][24] = 0,board[20][25] = 1,board[20][26] = 1,board[20][27] = 1,board[20][28] = 1,board[20][29] = 0,board[20][2] = 1,board[20][3] = 1,board[20][4] = 1,board[20][5] = 0,board[20][6] = 0,board[20][7] = 1,board[20][8] = 1,board[20][9] = 1,board[21][0] = 0,board[21][10] = 0,board[21][11] = 0,board[21][12] = 0,board[21][13] = 0,board[21][14] = 1,board[21][15] = 1,board[21][16] = 1,board[21][17] = 1,board[21][18] = 1,board[21][19] = 1,board[21][1] = 0,board[21][20] = 1,board[21][21] = 1,board[21][22] = 1,board[21][23] = 0,board[21][24] = 1,board[21][25] = 1,board[21][26] = 0,board[21][27] = 0,board[21][28] = 1,board[21][29] = 1,board[21][2] = 0,board[21][3] = 1,board[21][4] = 1,board[21][5] = 0,board[21][6] = 0,board[21][7] = 0,board[21][8] = 0,board[21][9] = 0,board[22][0] = 0,board[22][10] = 0,board[22][11] = 0,board[22][12] = 0,board[22][13] = 0,board[22][14] = 0,board[22][15] = 0,board[22][16] = 1,board[22][17] = 1,board[22][18] = 1,board[22][19] = 1,board[22][1] = 0,board[22][20] = 1,board[22][21] = 1,board[22][22] = 0,board[22][23] = 1,board[22][24] = 1,board[22][25] = 0,board[22][26] = 0,board[22][27] = 0,board[22][28] = 0,board[22][29] = 1,board[22][2] = 1,board[22][3] = 1,board[22][4] = 0,board[22][5] = 0,board[22][6] = 1,board[22][7] = 1,board[22][8] = 0,board[22][9] = 0,board[23][0] = 0,board[23][10] = 0,board[23][11] = 0,board[23][12] = 0,board[23][13] = 0,board[23][14] = 1,board[23][15] = 1,board[23][16] = 1,board[23][17] = 1,board[23][18] = 1,board[23][19] = 1,board[23][1] = 0,board[23][20] = 1,board[23][21] = 0,board[23][22] = 1,board[23][23] = 1,board[23][24] = 0,board[23][25] = 0,board[23][26] = 0,board[23][27] = 0,board[23][28] = 0,board[23][29] = 1,board[23][2] = 1,board[23][3] = 1,board[23][4] = 0,board[23][5] = 0,board[23][6] = 0,board[23][7] = 1,board[23][8] = 1,board[23][9] = 1,board[24][0] = 0,board[24][10] = 1,board[24][11] = 1,board[24][12] = 1,board[24][13] = 1,board[24][14] = 1,board[24][15] = 1,board[24][16] = 1,board[24][17] = 1,board[24][18] = 1,board[24][19] = 1,board[24][1] = 1,board[24][20] = 1,board[24][21] = 1,board[24][22] = 1,board[24][23] = 0,board[24][24] = 0,board[24][25] = 1,board[24][26] = 0,board[24][27] = 1,board[24][28] = 0,board[24][29] = 1,board[24][2] = 1,board[24][3] = 1,board[24][4] = 0,board[24][5] = 0,board[24][6] = 0,board[24][7] = 0,board[24][8] = 0,board[24][9] = 1,board[25][0] = 0,board[25][10] = 0,board[25][11] = 0,board[25][12] = 0,board[25][13] = 0,board[25][14] = 0,board[25][15] = 0,board[25][16] = 1,board[25][17] = 1,board[25][18] = 1,board[25][19] = 1,board[25][1] = 1,board[25][20] = 1,board[25][21] = 1,board[25][22] = 0,board[25][23] = 0,board[25][24] = 0,board[25][25] = 1,board[25][26] = 1,board[25][27] = 1,board[25][28] = 1,board[25][29] = 0,board[25][2] = 1,board[25][3] = 1,board[25][4] = 0,board[25][5] = 0,board[25][6] = 0,board[25][7] = 0,board[25][8] = 0,board[25][9] = 0,board[26][0] = 0,board[26][10] = 0,board[26][11] = 0,board[26][12] = 0,board[26][13] = 0,board[26][14] = 0,board[26][15] = 1,board[26][16] = 1,board[26][17] = 1,board[26][18] = 1,board[26][19] = 1,board[26][1] = 1,board[26][20] = 1,board[26][21] = 0,board[26][22] = 0,board[26][23] = 0,board[26][24] = 0,board[26][25] = 0,board[26][26] = 1,board[26][27] = 0,board[26][28] = 0,board[26][29] = 0,board[26][2] = 1,board[26][3] = 1,board[26][4] = 0,board[26][5] = 0,board[26][6] = 0,board[26][7] = 0,board[26][8] = 0,board[26][9] = 0,board[27][0] = 0,board[27][10] = 0,board[27][11] = 0,board[27][12] = 0,board[27][13] = 0,board[27][14] = 0,board[27][15] = 1,board[27][16] = 1,board[27][17] = 1,board[27][18] = 1,board[27][19] = 1,board[27][1] = 1,board[27][20] = 1,board[27][21] = 0,board[27][22] = 0,board[27][23] = 0,board[27][24] = 0,board[27][25] = 1,board[27][26] = 1,board[27][27] = 0,board[27][28] = 0,board[27][29] = 0,board[27][2] = 1,board[27][3] = 1,board[27][4] = 1,board[27][5] = 0,board[27][6] = 0,board[27][7] = 0,board[27][8] = 0,board[27][9] = 0,board[28][0] = 0,board[28][10] = 0,board[28][11] = 0,board[28][12] = 0,board[28][13] = 0,board[28][14] = 1,board[28][15] = 1,board[28][16] = 1,board[28][17] = 1,board[28][18] = 1,board[28][19] = 1,board[28][1] = 1,board[28][20] = 1,board[28][21] = 1,board[28][22] = 0,board[28][23] = 0,board[28][24] = 0,board[28][25] = 1,board[28][26] = 1,board[28][27] = 0,board[28][28] = 0,board[28][29] = 0,board[28][2] = 1,board[28][3] = 1,board[28][4] = 1,board[28][5] = 0,board[28][6] = 0,board[28][7] = 0,board[28][8] = 0,board[28][9] = 0,board[29][0] = 0,board[29][10] = 0,board[29][11] = 0,board[29][12] = 0,board[29][13] = 1,board[29][14] = 1,board[29][15] = 1,board[29][16] = 1,board[29][17] = 1,board[29][18] = 1,board[29][19] = 1,board[29][1] = 1,board[29][20] = 1,board[29][21] = 1,board[29][22] = 1,board[29][23] = 1,board[29][24] = 1,board[29][25] = 1,board[29][26] = 1,board[29][27] = 1,board[29][28] = 0,board[29][29] = 0,board[29][2] = 1,board[29][3] = 1,board[29][4] = 1,board[29][5] = 1,board[29][6] = 0,board[29][7] = 0,board[29][8] = 0,board[29][9] = 0,board[2][0] = 0,board[2][10] = 1,board[2][11] = 1,board[2][12] = 1,board[2][13] = 0,board[2][14] = 0,board[2][15] = 1,board[2][16] = 1,board[2][17] = 0,board[2][18] = 0,board[2][19] = 0,board[2][1] = 1,board[2][20] = 0,board[2][21] = 1,board[2][22] = 1,board[2][23] = 0,board[2][24] = 0,board[2][25] = 0,board[2][26] = 1,board[2][27] = 0,board[2][28] = 1,board[2][29] = 1,board[2][2] = 1,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 1,board[2][7] = 1,board[2][8] = 0,board[2][9] = 0,board[3][0] = 1,board[3][10] = 0,board[3][11] = 1,board[3][12] = 1,board[3][13] = 0,board[3][14] = 0,board[3][15] = 0,board[3][16] = 0,board[3][17] = 0,board[3][18] = 0,board[3][19] = 0,board[3][1] = 1,board[3][20] = 0,board[3][21] = 1,board[3][22] = 0,board[3][23] = 0,board[3][24] = 0,board[3][25] = 0,board[3][26] = 0,board[3][27] = 1,board[3][28] = 0,board[3][29] = 1,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 0,board[3][6] = 1,board[3][7] = 0,board[3][8] = 0,board[3][9] = 0,board[4][0] = 1,board[4][10] = 1,board[4][11] = 1,board[4][12] = 1,board[4][13] = 1,board[4][14] = 0,board[4][15] = 0,board[4][16] = 0,board[4][17] = 0,board[4][18] = 0,board[4][19] = 0,board[4][1] = 0,board[4][20] = 0,board[4][21] = 1,board[4][22] = 0,board[4][23] = 0,board[4][24] = 0,board[4][25] = 0,board[4][26] = 0,board[4][27] = 1,board[4][28] = 0,board[4][29] = 1,board[4][2] = 0,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 1,board[4][7] = 0,board[4][8] = 0,board[4][9] = 0,board[5][0] = 1,board[5][10] = 1,board[5][11] = 1,board[5][12] = 1,board[5][13] = 1,board[5][14] = 1,board[5][15] = 1,board[5][16] = 1,board[5][17] = 0,board[5][18] = 0,board[5][19] = 0,board[5][1] = 0,board[5][20] = 0,board[5][21] = 1,board[5][22] = 0,board[5][23] = 0,board[5][24] = 0,board[5][25] = 0,board[5][26] = 0,board[5][27] = 0,board[5][28] = 0,board[5][29] = 1,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 0,board[5][6] = 1,board[5][7] = 0,board[5][8] = 1,board[5][9] = 1,board[6][0] = 0,board[6][10] = 1,board[6][11] = 1,board[6][12] = 1,board[6][13] = 1,board[6][14] = 1,board[6][15] = 1,board[6][16] = 1,board[6][17] = 1,board[6][18] = 1,board[6][19] = 0,board[6][1] = 0,board[6][20] = 0,board[6][21] = 1,board[6][22] = 1,board[6][23] = 0,board[6][24] = 0,board[6][25] = 0,board[6][26] = 0,board[6][27] = 0,board[6][28] = 1,board[6][29] = 1,board[6][2] = 0,board[6][3] = 0,board[6][4] = 0,board[6][5] = 1,board[6][6] = 1,board[6][7] = 1,board[6][8] = 1,board[6][9] = 1,board[7][0] = 0,board[7][10] = 1,board[7][11] = 1,board[7][12] = 1,board[7][13] = 1,board[7][14] = 1,board[7][15] = 1,board[7][16] = 1,board[7][17] = 1,board[7][18] = 1,board[7][19] = 1,board[7][1] = 0,board[7][20] = 0,board[7][21] = 0,board[7][22] = 1,board[7][23] = 1,board[7][24] = 0,board[7][25] = 0,board[7][26] = 0,board[7][27] = 1,board[7][28] = 1,board[7][29] = 0,board[7][2] = 0,board[7][3] = 0,board[7][4] = 1,board[7][5] = 1,board[7][6] = 1,board[7][7] = 1,board[7][8] = 1,board[7][9] = 1,board[8][0] = 0,board[8][10] = 1,board[8][11] = 1,board[8][12] = 1,board[8][13] = 1,board[8][14] = 1,board[8][15] = 1,board[8][16] = 1,board[8][17] = 1,board[8][18] = 1,board[8][19] = 1,board[8][1] = 0,board[8][20] = 1,board[8][21] = 0,board[8][22] = 0,board[8][23] = 1,board[8][24] = 1,board[8][25] = 1,board[8][26] = 1,board[8][27] = 1,board[8][28] = 0,board[8][29] = 0,board[8][2] = 0,board[8][3] = 1,board[8][4] = 1,board[8][5] = 1,board[8][6] = 1,board[8][7] = 1,board[8][8] = 1,board[8][9] = 1,board[9][0] = 0,board[9][10] = 1,board[9][11] = 1,board[9][12] = 1,board[9][13] = 1,board[9][14] = 1,board[9][15] = 1,board[9][16] = 1,board[9][17] = 1,board[9][18] = 1,board[9][19] = 1,board[9][1] = 0,board[9][20] = 1,board[9][21] = 1,board[9][22] = 0,board[9][23] = 0,board[9][24] = 0,board[9][25] = 0,board[9][26] = 0,board[9][27] = 0,board[9][28] = 0,board[9][29] = 0,board[9][2] = 1,board[9][3] = 1,board[9][4] = 1,board[9][5] = 1,board[9][6] = 1,board[9][7] = 0,board[9][8] = 0,board[9][9] = 0]", 128 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 0,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][20] = 0,board[0][21] = 0,board[0][22] = 1,board[0][23] = 1,board[0][24] = 1,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 0,board[10][10] = 0,board[10][11] = 0,board[10][12] = 0,board[10][13] = 0,board[10][14] = 0,board[10][15] = 0,board[10][16] = 0,board[10][17] = 1,board[10][18] = 1,board[10][19] = 0,board[10][1] = 0,board[10][20] = 0,board[10][21] = 0,board[10][22] = 1,board[10][23] = 0,board[10][24] = 0,board[10][2] = 1,board[10][3] = 1,board[10][4] = 0,board[10][5] = 0,board[10][6] = 0,board[10][7] = 0,board[10][8] = 0,board[10][9] = 0,board[11][0] = 0,board[11][10] = 1,board[11][11] = 1,board[11][12] = 1,board[11][13] = 0,board[11][14] = 0,board[11][15] = 0,board[11][16] = 0,board[11][17] = 0,board[11][18] = 1,board[11][19] = 0,board[11][1] = 0,board[11][20] = 0,board[11][21] = 0,board[11][22] = 1,board[11][23] = 0,board[11][24] = 0,board[11][2] = 1,board[11][3] = 1,board[11][4] = 0,board[11][5] = 0,board[11][6] = 0,board[11][7] = 0,board[11][8] = 0,board[11][9] = 1,board[12][0] = 0,board[12][10] = 1,board[12][11] = 1,board[12][12] = 1,board[12][13] = 1,board[12][14] = 0,board[12][15] = 0,board[12][16] = 0,board[12][17] = 0,board[12][18] = 1,board[12][19] = 0,board[12][1] = 0,board[12][20] = 0,board[12][21] = 0,board[12][22] = 1,board[12][23] = 0,board[12][24] = 0,board[12][2] = 1,board[12][3] = 1,board[12][4] = 0,board[12][5] = 0,board[12][6] = 0,board[12][7] = 0,board[12][8] = 1,board[12][9] = 1,board[13][0] = 0,board[13][10] = 1,board[13][11] = 1,board[13][12] = 0,board[13][13] = 1,board[13][14] = 1,board[13][15] = 0,board[13][16] = 0,board[13][17] = 0,board[13][18] = 1,board[13][19] = 1,board[13][1] = 0,board[13][20] = 1,board[13][21] = 1,board[13][22] = 1,board[13][23] = 0,board[13][24] = 0,board[13][2] = 1,board[13][3] = 1,board[13][4] = 0,board[13][5] = 0,board[13][6] = 0,board[13][7] = 1,board[13][8] = 1,board[13][9] = 0,board[14][0] = 0,board[14][10] = 1,board[14][11] = 1,board[14][12] = 1,board[14][13] = 1,board[14][14] = 1,board[14][15] = 0,board[14][16] = 0,board[14][17] = 0,board[14][18] = 1,board[14][19] = 1,board[14][1] = 0,board[14][20] = 0,board[14][21] = 1,board[14][22] = 1,board[14][23] = 0,board[14][24] = 0,board[14][2] = 1,board[14][3] = 1,board[14][4] = 0,board[14][5] = 0,board[14][6] = 0,board[14][7] = 1,board[14][8] = 1,board[14][9] = 1,board[15][0] = 0,board[15][10] = 0,board[15][11] = 0,board[15][12] = 0,board[15][13] = 1,board[15][14] = 1,board[15][15] = 0,board[15][16] = 0,board[15][17] = 0,board[15][18] = 1,board[15][19] = 1,board[15][1] = 0,board[15][20] = 1,board[15][21] = 1,board[15][22] = 1,board[15][23] = 0,board[15][24] = 0,board[15][2] = 1,board[15][3] = 1,board[15][4] = 0,board[15][5] = 0,board[15][6] = 0,board[15][7] = 1,board[15][8] = 1,board[15][9] = 0,board[16][0] = 0,board[16][10] = 0,board[16][11] = 0,board[16][12] = 1,board[16][13] = 1,board[16][14] = 0,board[16][15] = 0,board[16][16] = 0,board[16][17] = 0,board[16][18] = 1,board[16][19] = 1,board[16][1] = 0,board[16][20] = 0,board[16][21] = 1,board[16][22] = 1,board[16][23] = 0,board[16][24] = 0,board[16][2] = 1,board[16][3] = 1,board[16][4] = 0,board[16][5] = 0,board[16][6] = 0,board[16][7] = 0,board[16][8] = 1,board[16][9] = 1,board[17][0] = 0,board[17][10] = 1,board[17][11] = 1,board[17][12] = 1,board[17][13] = 0,board[17][14] = 0,board[17][15] = 0,board[17][16] = 0,board[17][17] = 0,board[17][18] = 1,board[17][19] = 1,board[17][1] = 0,board[17][20] = 1,board[17][21] = 1,board[17][22] = 1,board[17][23] = 0,board[17][24] = 0,board[17][2] = 1,board[17][3] = 1,board[17][4] = 0,board[17][5] = 0,board[17][6] = 0,board[17][7] = 0,board[17][8] = 0,board[17][9] = 1,board[18][0] = 0,board[18][10] = 1,board[18][11] = 1,board[18][12] = 1,board[18][13] = 1,board[18][14] = 1,board[18][15] = 0,board[18][16] = 0,board[18][17] = 0,board[18][18] = 1,board[18][19] = 1,board[18][1] = 0,board[18][20] = 0,board[18][21] = 1,board[18][22] = 1,board[18][23] = 0,board[18][24] = 0,board[18][2] = 1,board[18][3] = 1,board[18][4] = 0,board[18][5] = 0,board[18][6] = 0,board[18][7] = 1,board[18][8] = 1,board[18][9] = 1,board[19][0] = 0,board[19][10] = 1,board[19][11] = 1,board[19][12] = 1,board[19][13] = 1,board[19][14] = 1,board[19][15] = 1,board[19][16] = 0,board[19][17] = 0,board[19][18] = 1,board[19][19] = 1,board[19][1] = 0,board[19][20] = 1,board[19][21] = 1,board[19][22] = 1,board[19][23] = 0,board[19][24] = 0,board[19][2] = 1,board[19][3] = 1,board[19][4] = 0,board[19][5] = 0,board[19][6] = 1,board[19][7] = 1,board[19][8] = 1,board[19][9] = 1,board[1][0] = 0,board[1][10] = 0,board[1][11] = 0,board[1][12] = 0,board[1][13] = 0,board[1][14] = 0,board[1][15] = 0,board[1][16] = 0,board[1][17] = 0,board[1][18] = 0,board[1][19] = 0,board[1][1] = 0,board[1][20] = 1,board[1][21] = 1,board[1][22] = 1,board[1][23] = 0,board[1][24] = 0,board[1][2] = 0,board[1][3] = 0,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[20][0] = 0,board[20][10] = 1,board[20][11] = 1,board[20][12] = 1,board[20][13] = 1,board[20][14] = 1,board[20][15] = 1,board[20][16] = 0,board[20][17] = 1,board[20][18] = 1,board[20][19] = 1,board[20][1] = 0,board[20][20] = 1,board[20][21] = 1,board[20][22] = 1,board[20][23] = 0,board[20][24] = 0,board[20][2] = 1,board[20][3] = 1,board[20][4] = 1,board[20][5] = 0,board[20][6] = 1,board[20][7] = 1,board[20][8] = 1,board[20][9] = 1,board[21][0] = 0,board[21][10] = 1,board[21][11] = 1,board[21][12] = 1,board[21][13] = 1,board[21][14] = 1,board[21][15] = 1,board[21][16] = 1,board[21][17] = 1,board[21][18] = 1,board[21][19] = 1,board[21][1] = 0,board[21][20] = 1,board[21][21] = 1,board[21][22] = 1,board[21][23] = 0,board[21][24] = 0,board[21][2] = 1,board[21][3] = 1,board[21][4] = 1,board[21][5] = 1,board[21][6] = 1,board[21][7] = 1,board[21][8] = 1,board[21][9] = 1,board[22][0] = 0,board[22][10] = 1,board[22][11] = 1,board[22][12] = 1,board[22][13] = 1,board[22][14] = 1,board[22][15] = 1,board[22][16] = 1,board[22][17] = 1,board[22][18] = 1,board[22][19] = 1,board[22][1] = 0,board[22][20] = 1,board[22][21] = 1,board[22][22] = 1,board[22][23] = 0,board[22][24] = 0,board[22][2] = 1,board[22][3] = 1,board[22][4] = 1,board[22][5] = 1,board[22][6] = 1,board[22][7] = 1,board[22][8] = 1,board[22][9] = 1,board[23][0] = 0,board[23][10] = 0,board[23][11] = 0,board[23][12] = 0,board[23][13] = 0,board[23][14] = 0,board[23][15] = 0,board[23][16] = 0,board[23][17] = 0,board[23][18] = 1,board[23][19] = 1,board[23][1] = 0,board[23][20] = 0,board[23][21] = 0,board[23][22] = 0,board[23][23] = 0,board[23][24] = 0,board[23][2] = 0,board[23][3] = 0,board[23][4] = 1,board[23][5] = 1,board[23][6] = 0,board[23][7] = 0,board[23][8] = 0,board[23][9] = 0,board[24][0] = 0,board[24][10] = 0,board[24][11] = 0,board[24][12] = 0,board[24][13] = 0,board[24][14] = 0,board[24][15] = 0,board[24][16] = 0,board[24][17] = 0,board[24][18] = 1,board[24][19] = 1,board[24][1] = 0,board[24][20] = 0,board[24][21] = 0,board[24][22] = 0,board[24][23] = 0,board[24][24] = 0,board[24][2] = 0,board[24][3] = 0,board[24][4] = 1,board[24][5] = 1,board[24][6] = 0,board[24][7] = 0,board[24][8] = 0,board[24][9] = 0,board[2][0] = 1,board[2][10] = 0,board[2][11] = 0,board[2][12] = 0,board[2][13] = 0,board[2][14] = 0,board[2][15] = 0,board[2][16] = 0,board[2][17] = 0,board[2][18] = 1,board[2][19] = 1,board[2][1] = 1,board[2][20] = 1,board[2][21] = 0,board[2][22] = 0,board[2][23] = 0,board[2][24] = 0,board[2][2] = 0,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 0,board[3][0] = 0,board[3][10] = 0,board[3][11] = 0,board[3][12] = 0,board[3][13] = 0,board[3][14] = 0,board[3][15] = 0,board[3][16] = 1,board[3][17] = 1,board[3][18] = 1,board[3][19] = 0,board[3][1] = 1,board[3][20] = 0,board[3][21] = 0,board[3][22] = 0,board[3][23] = 0,board[3][24] = 0,board[3][2] = 1,board[3][3] = 1,board[3][4] = 1,board[3][5] = 0,board[3][6] = 0,board[3][7] = 0,board[3][8] = 0,board[3][9] = 0,board[4][0] = 0,board[4][10] = 0,board[4][11] = 0,board[4][12] = 0,board[4][13] = 0,board[4][14] = 1,board[4][15] = 1,board[4][16] = 1,board[4][17] = 0,board[4][18] = 0,board[4][19] = 0,board[4][1] = 0,board[4][20] = 0,board[4][21] = 0,board[4][22] = 0,board[4][23] = 0,board[4][24] = 0,board[4][2] = 0,board[4][3] = 0,board[4][4] = 1,board[4][5] = 1,board[4][6] = 1,board[4][7] = 1,board[4][8] = 0,board[4][9] = 0,board[5][0] = 0,board[5][10] = 0,board[5][11] = 0,board[5][12] = 1,board[5][13] = 1,board[5][14] = 1,board[5][15] = 0,board[5][16] = 0,board[5][17] = 0,board[5][18] = 0,board[5][19] = 0,board[5][1] = 0,board[5][20] = 0,board[5][21] = 0,board[5][22] = 0,board[5][23] = 0,board[5][24] = 0,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 0,board[5][6] = 0,board[5][7] = 1,board[5][8] = 1,board[5][9] = 1,board[6][0] = 0,board[6][10] = 1,board[6][11] = 1,board[6][12] = 1,board[6][13] = 0,board[6][14] = 0,board[6][15] = 0,board[6][16] = 0,board[6][17] = 0,board[6][18] = 0,board[6][19] = 0,board[6][1] = 0,board[6][20] = 0,board[6][21] = 0,board[6][22] = 0,board[6][23] = 0,board[6][24] = 0,board[6][2] = 0,board[6][3] = 0,board[6][4] = 0,board[6][5] = 0,board[6][6] = 0,board[6][7] = 0,board[6][8] = 0,board[6][9] = 1,board[7][0] = 0,board[7][10] = 1,board[7][11] = 1,board[7][12] = 1,board[7][13] = 1,board[7][14] = 0,board[7][15] = 0,board[7][16] = 0,board[7][17] = 0,board[7][18] = 0,board[7][19] = 0,board[7][1] = 0,board[7][20] = 0,board[7][21] = 0,board[7][22] = 0,board[7][23] = 0,board[7][24] = 0,board[7][2] = 0,board[7][3] = 0,board[7][4] = 0,board[7][5] = 0,board[7][6] = 0,board[7][7] = 0,board[7][8] = 1,board[7][9] = 1,board[8][0] = 0,board[8][10] = 1,board[8][11] = 1,board[8][12] = 1,board[8][13] = 1,board[8][14] = 1,board[8][15] = 1,board[8][16] = 1,board[8][17] = 1,board[8][18] = 1,board[8][19] = 1,board[8][1] = 0,board[8][20] = 1,board[8][21] = 1,board[8][22] = 1,board[8][23] = 0,board[8][24] = 0,board[8][2] = 1,board[8][3] = 1,board[8][4] = 1,board[8][5] = 1,board[8][6] = 1,board[8][7] = 1,board[8][8] = 1,board[8][9] = 1,board[9][0] = 0,board[9][10] = 1,board[9][11] = 1,board[9][12] = 1,board[9][13] = 1,board[9][14] = 1,board[9][15] = 1,board[9][16] = 1,board[9][17] = 1,board[9][18] = 1,board[9][19] = 1,board[9][1] = 0,board[9][20] = 1,board[9][21] = 1,board[9][22] = 1,board[9][23] = 0,board[9][24] = 0,board[9][2] = 1,board[9][3] = 1,board[9][4] = 1,board[9][5] = 1,board[9][6] = 1,board[9][7] = 1,board[9][8] = 1,board[9][9] = 1]", 129 "[board[0][0] = 1,board[0][10] = 0,board[0][11] = 0,board[0][12] = 0,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 1,board[0][20] = 0,board[0][21] = 0,board[0][22] = 0,board[0][23] = 1,board[0][24] = 1,board[0][2] = 1,board[0][3] = 1,board[0][4] = 1,board[0][5] = 1,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 0,board[10][10] = 0,board[10][11] = 1,board[10][12] = 1,board[10][13] = 1,board[10][14] = 1,board[10][15] = 1,board[10][16] = 1,board[10][17] = 1,board[10][18] = 1,board[10][19] = 1,board[10][1] = 0,board[10][20] = 0,board[10][21] = 0,board[10][22] = 0,board[10][23] = 0,board[10][24] = 0,board[10][2] = 0,board[10][3] = 0,board[10][4] = 0,board[10][5] = 0,board[10][6] = 0,board[10][7] = 0,board[10][8] = 0,board[10][9] = 0,board[11][0] = 0,board[11][10] = 1,board[11][11] = 1,board[11][12] = 1,board[11][13] = 1,board[11][14] = 1,board[11][15] = 0,board[11][16] = 0,board[11][17] = 1,board[11][18] = 1,board[11][19] = 1,board[11][1] = 0,board[11][20] = 1,board[11][21] = 0,board[11][22] = 0,board[11][23] = 0,board[11][24] = 0,board[11][2] = 0,board[11][3] = 0,board[11][4] = 0,board[11][5] = 0,board[11][6] = 0,board[11][7] = 0,board[11][8] = 0,board[11][9] = 0,board[12][0] = 0,board[12][10] = 1,board[12][11] = 1,board[12][12] = 0,board[12][13] = 1,board[12][14] = 1,board[12][15] = 0,board[12][16] = 0,board[12][17] = 1,board[12][18] = 1,board[12][19] = 1,board[12][1] = 0,board[12][20] = 1,board[12][21] = 1,board[12][22] = 0,board[12][23] = 0,board[12][24] = 0,board[12][2] = 0,board[12][3] = 0,board[12][4] = 0,board[12][5] = 0,board[12][6] = 0,board[12][7] = 0,board[12][8] = 0,board[12][9] = 1,board[13][0] = 0,board[13][10] = 1,board[13][11] = 0,board[13][12] = 0,board[13][13] = 1,board[13][14] = 1,board[13][15] = 1,board[13][16] = 1,board[13][17] = 1,board[13][18] = 1,board[13][19] = 1,board[13][1] = 0,board[13][20] = 0,board[13][21] = 1,board[13][22] = 1,board[13][23] = 1,board[13][24] = 0,board[13][2] = 0,board[13][3] = 0,board[13][4] = 0,board[13][5] = 0,board[13][6] = 0,board[13][7] = 0,board[13][8] = 1,board[13][9] = 1,board[14][0] = 0,board[14][10] = 0,board[14][11] = 0,board[14][12] = 0,board[14][13] = 1,board[14][14] = 1,board[14][15] = 1,board[14][16] = 1,board[14][17] = 1,board[14][18] = 1,board[14][19] = 1,board[14][1] = 0,board[14][20] = 0,board[14][21] = 0,board[14][22] = 1,board[14][23] = 1,board[14][24] = 1,board[14][2] = 0,board[14][3] = 0,board[14][4] = 0,board[14][5] = 0,board[14][6] = 0,board[14][7] = 1,board[14][8] = 1,board[14][9] = 1,board[15][0] = 0,board[15][10] = 0,board[15][11] = 0,board[15][12] = 0,board[15][13] = 1,board[15][14] = 1,board[15][15] = 1,board[15][16] = 1,board[15][17] = 1,board[15][18] = 1,board[15][19] = 1,board[15][1] = 0,board[15][20] = 0,board[15][21] = 0,board[15][22] = 0,board[15][23] = 1,board[15][24] = 1,board[15][2] = 0,board[15][3] = 0,board[15][4] = 0,board[15][5] = 1,board[15][6] = 1,board[15][7] = 1,board[15][8] = 1,board[15][9] = 0,board[16][0] = 0,board[16][10] = 0,board[16][11] = 0,board[16][12] = 0,board[16][13] = 1,board[16][14] = 1,board[16][15] = 1,board[16][16] = 1,board[16][17] = 1,board[16][18] = 1,board[16][19] = 1,board[16][1] = 0,board[16][20] = 0,board[16][21] = 0,board[16][22] = 0,board[16][23] = 0,board[16][24] = 1,board[16][2] = 0,board[16][3] = 0,board[16][4] = 1,board[16][5] = 1,board[16][6] = 1,board[16][7] = 1,board[16][8] = 0,board[16][9] = 0,board[17][0] = 0,board[17][10] = 0,board[17][11] = 1,board[17][12] = 1,board[17][13] = 1,board[17][14] = 1,board[17][15] = 1,board[17][16] = 1,board[17][17] = 1,board[17][18] = 1,board[17][19] = 1,board[17][1] = 0,board[17][20] = 1,board[17][21] = 1,board[17][22] = 0,board[17][23] = 0,board[17][24] = 0,board[17][2] = 1,board[17][3] = 1,board[17][4] = 1,board[17][5] = 1,board[17][6] = 1,board[17][7] = 0,board[17][8] = 0,board[17][9] = 0,board[18][0] = 0,board[18][10] = 0,board[18][11] = 1,board[18][12] = 1,board[18][13] = 1,board[18][14] = 1,board[18][15] = 1,board[18][16] = 1,board[18][17] = 1,board[18][18] = 1,board[18][19] = 1,board[18][1] = 1,board[18][20] = 1,board[18][21] = 1,board[18][22] = 0,board[18][23] = 0,board[18][24] = 0,board[18][2] = 1,board[18][3] = 1,board[18][4] = 1,board[18][5] = 1,board[18][6] = 0,board[18][7] = 0,board[18][8] = 0,board[18][9] = 0,board[19][0] = 1,board[19][10] = 0,board[19][11] = 1,board[19][12] = 1,board[19][13] = 1,board[19][14] = 1,board[19][15] = 1,board[19][16] = 1,board[19][17] = 1,board[19][18] = 1,board[19][19] = 1,board[19][1] = 1,board[19][20] = 1,board[19][21] = 1,board[19][22] = 0,board[19][23] = 0,board[19][24] = 0,board[19][2] = 1,board[19][3] = 1,board[19][4] = 1,board[19][5] = 0,board[19][6] = 0,board[19][7] = 0,board[19][8] = 0,board[19][9] = 0,board[1][0] = 0,board[1][10] = 0,board[1][11] = 0,board[1][12] = 0,board[1][13] = 0,board[1][14] = 0,board[1][15] = 0,board[1][16] = 1,board[1][17] = 0,board[1][18] = 0,board[1][19] = 0,board[1][1] = 0,board[1][20] = 0,board[1][21] = 0,board[1][22] = 1,board[1][23] = 1,board[1][24] = 1,board[1][2] = 1,board[1][3] = 1,board[1][4] = 1,board[1][5] = 1,board[1][6] = 1,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[20][0] = 1,board[20][10] = 0,board[20][11] = 1,board[20][12] = 1,board[20][13] = 1,board[20][14] = 0,board[20][15] = 0,board[20][16] = 0,board[20][17] = 1,board[20][18] = 1,board[20][19] = 1,board[20][1] = 1,board[20][20] = 1,board[20][21] = 1,board[20][22] = 0,board[20][23] = 0,board[20][24] = 0,board[20][2] = 1,board[20][3] = 1,board[20][4] = 0,board[20][5] = 0,board[20][6] = 0,board[20][7] = 0,board[20][8] = 0,board[20][9] = 0,board[21][0] = 1,board[21][10] = 1,board[21][11] = 1,board[21][12] = 1,board[21][13] = 1,board[21][14] = 0,board[21][15] = 0,board[21][16] = 0,board[21][17] = 1,board[21][18] = 1,board[21][19] = 1,board[21][1] = 1,board[21][20] = 1,board[21][21] = 1,board[21][22] = 1,board[21][23] = 0,board[21][24] = 0,board[21][2] = 1,board[21][3] = 0,board[21][4] = 0,board[21][5] = 0,board[21][6] = 0,board[21][7] = 0,board[21][8] = 0,board[21][9] = 0,board[22][0] = 1,board[22][10] = 1,board[22][11] = 1,board[22][12] = 1,board[22][13] = 1,board[22][14] = 0,board[22][15] = 0,board[22][16] = 0,board[22][17] = 1,board[22][18] = 1,board[22][19] = 1,board[22][1] = 1,board[22][20] = 1,board[22][21] = 1,board[22][22] = 1,board[22][23] = 0,board[22][24] = 0,board[22][2] = 0,board[22][3] = 0,board[22][4] = 0,board[22][5] = 0,board[22][6] = 0,board[22][7] = 0,board[22][8] = 0,board[22][9] = 0,board[23][0] = 1,board[23][10] = 1,board[23][11] = 1,board[23][12] = 1,board[23][13] = 1,board[23][14] = 0,board[23][15] = 0,board[23][16] = 0,board[23][17] = 1,board[23][18] = 1,board[23][19] = 1,board[23][1] = 0,board[23][20] = 1,board[23][21] = 1,board[23][22] = 1,board[23][23] = 0,board[23][24] = 0,board[23][2] = 0,board[23][3] = 0,board[23][4] = 0,board[23][5] = 0,board[23][6] = 0,board[23][7] = 0,board[23][8] = 0,board[23][9] = 0,board[24][0] = 0,board[24][10] = 1,board[24][11] = 1,board[24][12] = 1,board[24][13] = 1,board[24][14] = 0,board[24][15] = 0,board[24][16] = 0,board[24][17] = 1,board[24][18] = 1,board[24][19] = 1,board[24][1] = 0,board[24][20] = 1,board[24][21] = 1,board[24][22] = 1,board[24][23] = 0,board[24][24] = 0,board[24][2] = 0,board[24][3] = 0,board[24][4] = 0,board[24][5] = 0,board[24][6] = 0,board[24][7] = 0,board[24][8] = 0,board[24][9] = 0,board[2][0] = 0,board[2][10] = 0,board[2][11] = 0,board[2][12] = 0,board[2][13] = 0,board[2][14] = 0,board[2][15] = 1,board[2][16] = 1,board[2][17] = 1,board[2][18] = 0,board[2][19] = 0,board[2][1] = 0,board[2][20] = 0,board[2][21] = 1,board[2][22] = 1,board[2][23] = 1,board[2][24] = 1,board[2][2] = 0,board[2][3] = 1,board[2][4] = 1,board[2][5] = 1,board[2][6] = 1,board[2][7] = 1,board[2][8] = 0,board[2][9] = 0,board[3][0] = 0,board[3][10] = 0,board[3][11] = 0,board[3][12] = 0,board[3][13] = 0,board[3][14] = 1,board[3][15] = 1,board[3][16] = 1,board[3][17] = 1,board[3][18] = 1,board[3][19] = 0,board[3][1] = 0,board[3][20] = 1,board[3][21] = 1,board[3][22] = 1,board[3][23] = 0,board[3][24] = 0,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 1,board[3][6] = 1,board[3][7] = 1,board[3][8] = 1,board[3][9] = 0,board[4][0] = 0,board[4][10] = 0,board[4][11] = 0,board[4][12] = 0,board[4][13] = 1,board[4][14] = 1,board[4][15] = 1,board[4][16] = 1,board[4][17] = 1,board[4][18] = 1,board[4][19] = 1,board[4][1] = 0,board[4][20] = 1,board[4][21] = 1,board[4][22] = 0,board[4][23] = 0,board[4][24] = 0,board[4][2] = 0,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 1,board[4][7] = 1,board[4][8] = 1,board[4][9] = 1,board[5][0] = 0,board[5][10] = 1,board[5][11] = 0,board[5][12] = 1,board[5][13] = 1,board[5][14] = 1,board[5][15] = 1,board[5][16] = 1,board[5][17] = 1,board[5][18] = 1,board[5][19] = 1,board[5][1] = 0,board[5][20] = 1,board[5][21] = 0,board[5][22] = 0,board[5][23] = 0,board[5][24] = 0,board[5][2] = 0,board[5][3] = 0,board[5][4] = 0,board[5][5] = 0,board[5][6] = 0,board[5][7] = 1,board[5][8] = 1,board[5][9] = 1,board[6][0] = 0,board[6][10] = 1,board[6][11] = 1,board[6][12] = 0,board[6][13] = 1,board[6][14] = 1,board[6][15] = 1,board[6][16] = 1,board[6][17] = 1,board[6][18] = 1,board[6][19] = 1,board[6][1] = 0,board[6][20] = 0,board[6][21] = 0,board[6][22] = 0,board[6][23] = 0,board[6][24] = 0,board[6][2] = 0,board[6][3] = 0,board[6][4] = 0,board[6][5] = 0,board[6][6] = 0,board[6][7] = 0,board[6][8] = 1,board[6][9] = 1,board[7][0] = 0,board[7][10] = 1,board[7][11] = 1,board[7][12] = 1,board[7][13] = 1,board[7][14] = 1,board[7][15] = 0,board[7][16] = 0,board[7][17] = 1,board[7][18] = 1,board[7][19] = 1,board[7][1] = 0,board[7][20] = 0,board[7][21] = 0,board[7][22] = 0,board[7][23] = 0,board[7][24] = 0,board[7][2] = 0,board[7][3] = 0,board[7][4] = 0,board[7][5] = 0,board[7][6] = 0,board[7][7] = 0,board[7][8] = 0,board[7][9] = 1,board[8][0] = 0,board[8][10] = 0,board[8][11] = 1,board[8][12] = 1,board[8][13] = 1,board[8][14] = 1,board[8][15] = 0,board[8][16] = 0,board[8][17] = 1,board[8][18] = 1,board[8][19] = 1,board[8][1] = 0,board[8][20] = 0,board[8][21] = 0,board[8][22] = 0,board[8][23] = 0,board[8][24] = 0,board[8][2] = 0,board[8][3] = 0,board[8][4] = 0,board[8][5] = 0,board[8][6] = 0,board[8][7] = 0,board[8][8] = 0,board[8][9] = 0,board[9][0] = 0,board[9][10] = 0,board[9][11] = 0,board[9][12] = 1,board[9][13] = 1,board[9][14] = 1,board[9][15] = 1,board[9][16] = 1,board[9][17] = 1,board[9][18] = 1,board[9][19] = 1,board[9][1] = 0,board[9][20] = 0,board[9][21] = 0,board[9][22] = 0,board[9][23] = 0,board[9][24] = 0,board[9][2] = 0,board[9][3] = 0,board[9][4] = 0,board[9][5] = 0,board[9][6] = 0,board[9][7] = 0,board[9][8] = 0,board[9][9] = 0]", 130 "[board[0][0] = 0,board[0][10] = 0,board[0][11] = 0,board[0][12] = 0,board[0][13] = 0,board[0][14] = 0,board[0][15] = 0,board[0][16] = 0,board[0][17] = 0,board[0][18] = 0,board[0][19] = 0,board[0][1] = 0,board[0][20] = 1,board[0][21] = 1,board[0][22] = 1,board[0][23] = 1,board[0][24] = 1,board[0][2] = 0,board[0][3] = 0,board[0][4] = 0,board[0][5] = 0,board[0][6] = 0,board[0][7] = 0,board[0][8] = 0,board[0][9] = 0,board[10][0] = 0,board[10][10] = 1,board[10][11] = 1,board[10][12] = 1,board[10][13] = 1,board[10][14] = 1,board[10][15] = 0,board[10][16] = 0,board[10][17] = 1,board[10][18] = 1,board[10][19] = 1,board[10][1] = 0,board[10][20] = 1,board[10][21] = 1,board[10][22] = 1,board[10][23] = 1,board[10][24] = 1,board[10][2] = 0,board[10][3] = 0,board[10][4] = 0,board[10][5] = 1,board[10][6] = 1,board[10][7] = 1,board[10][8] = 1,board[10][9] = 1,board[11][0] = 0,board[11][10] = 1,board[11][11] = 1,board[11][12] = 1,board[11][13] = 0,board[11][14] = 1,board[11][15] = 1,board[11][16] = 1,board[11][17] = 0,board[11][18] = 0,board[11][19] = 1,board[11][1] = 0,board[11][20] = 1,board[11][21] = 1,board[11][22] = 1,board[11][23] = 1,board[11][24] = 1,board[11][2] = 0,board[11][3] = 0,board[11][4] = 1,board[11][5] = 1,board[11][6] = 0,board[11][7] = 1,board[11][8] = 0,board[11][9] = 1,board[12][0] = 0,board[12][10] = 1,board[12][11] = 1,board[12][12] = 1,board[12][13] = 1,board[12][14] = 1,board[12][15] = 1,board[12][16] = 1,board[12][17] = 1,board[12][18] = 1,board[12][19] = 1,board[12][1] = 0,board[12][20] = 1,board[12][21] = 1,board[12][22] = 1,board[12][23] = 1,board[12][24] = 1,board[12][2] = 0,board[12][3] = 0,board[12][4] = 0,board[12][5] = 0,board[12][6] = 0,board[12][7] = 0,board[12][8] = 1,board[12][9] = 1,board[13][0] = 0,board[13][10] = 1,board[13][11] = 1,board[13][12] = 1,board[13][13] = 1,board[13][14] = 1,board[13][15] = 1,board[13][16] = 1,board[13][17] = 1,board[13][18] = 1,board[13][19] = 1,board[13][1] = 0,board[13][20] = 1,board[13][21] = 1,board[13][22] = 1,board[13][23] = 1,board[13][24] = 1,board[13][2] = 0,board[13][3] = 0,board[13][4] = 0,board[13][5] = 0,board[13][6] = 0,board[13][7] = 0,board[13][8] = 1,board[13][9] = 1,board[14][0] = 0,board[14][10] = 1,board[14][11] = 1,board[14][12] = 1,board[14][13] = 1,board[14][14] = 1,board[14][15] = 1,board[14][16] = 1,board[14][17] = 1,board[14][18] = 1,board[14][19] = 1,board[14][1] = 0,board[14][20] = 1,board[14][21] = 1,board[14][22] = 1,board[14][23] = 1,board[14][24] = 1,board[14][2] = 0,board[14][3] = 0,board[14][4] = 0,board[14][5] = 0,board[14][6] = 0,board[14][7] = 1,board[14][8] = 1,board[14][9] = 1,board[15][0] = 0,board[15][10] = 0,board[15][11] = 1,board[15][12] = 1,board[15][13] = 1,board[15][14] = 1,board[15][15] = 1,board[15][16] = 1,board[15][17] = 1,board[15][18] = 1,board[15][19] = 1,board[15][1] = 0,board[15][20] = 1,board[15][21] = 1,board[15][22] = 1,board[15][23] = 1,board[15][24] = 1,board[15][2] = 0,board[15][3] = 0,board[15][4] = 0,board[15][5] = 0,board[15][6] = 0,board[15][7] = 1,board[15][8] = 0,board[15][9] = 0,board[16][0] = 0,board[16][10] = 0,board[16][11] = 1,board[16][12] = 1,board[16][13] = 1,board[16][14] = 1,board[16][15] = 1,board[16][16] = 1,board[16][17] = 1,board[16][18] = 1,board[16][19] = 1,board[16][1] = 0,board[16][20] = 1,board[16][21] = 1,board[16][22] = 1,board[16][23] = 1,board[16][24] = 1,board[16][2] = 0,board[16][3] = 0,board[16][4] = 0,board[16][5] = 0,board[16][6] = 0,board[16][7] = 1,board[16][8] = 0,board[16][9] = 1,board[17][0] = 0,board[17][10] = 1,board[17][11] = 1,board[17][12] = 1,board[17][13] = 0,board[17][14] = 0,board[17][15] = 0,board[17][16] = 1,board[17][17] = 1,board[17][18] = 1,board[17][19] = 1,board[17][1] = 0,board[17][20] = 1,board[17][21] = 1,board[17][22] = 1,board[17][23] = 1,board[17][24] = 1,board[17][2] = 0,board[17][3] = 0,board[17][4] = 0,board[17][5] = 0,board[17][6] = 0,board[17][7] = 0,board[17][8] = 1,board[17][9] = 1,board[18][0] = 0,board[18][10] = 0,board[18][11] = 0,board[18][12] = 0,board[18][13] = 0,board[18][14] = 0,board[18][15] = 0,board[18][16] = 0,board[18][17] = 1,board[18][18] = 1,board[18][19] = 1,board[18][1] = 0,board[18][20] = 1,board[18][21] = 1,board[18][22] = 1,board[18][23] = 1,board[18][24] = 1,board[18][2] = 0,board[18][3] = 0,board[18][4] = 0,board[18][5] = 0,board[18][6] = 0,board[18][7] = 0,board[18][8] = 0,board[18][9] = 0,board[19][0] = 0,board[19][10] = 0,board[19][11] = 0,board[19][12] = 0,board[19][13] = 0,board[19][14] = 0,board[19][15] = 0,board[19][16] = 0,board[19][17] = 0,board[19][18] = 1,board[19][19] = 1,board[19][1] = 0,board[19][20] = 1,board[19][21] = 1,board[19][22] = 1,board[19][23] = 1,board[19][24] = 1,board[19][2] = 0,board[19][3] = 0,board[19][4] = 0,board[19][5] = 0,board[19][6] = 0,board[19][7] = 0,board[19][8] = 0,board[19][9] = 0,board[1][0] = 0,board[1][10] = 0,board[1][11] = 0,board[1][12] = 0,board[1][13] = 0,board[1][14] = 0,board[1][15] = 0,board[1][16] = 0,board[1][17] = 0,board[1][18] = 1,board[1][19] = 1,board[1][1] = 0,board[1][20] = 1,board[1][21] = 0,board[1][22] = 0,board[1][23] = 1,board[1][24] = 1,board[1][2] = 1,board[1][3] = 1,board[1][4] = 0,board[1][5] = 0,board[1][6] = 0,board[1][7] = 0,board[1][8] = 0,board[1][9] = 0,board[2][0] = 0,board[2][10] = 0,board[2][11] = 0,board[2][12] = 0,board[2][13] = 0,board[2][14] = 0,board[2][15] = 0,board[2][16] = 0,board[2][17] = 1,board[2][18] = 1,board[2][19] = 1,board[2][1] = 1,board[2][20] = 1,board[2][21] = 1,board[2][22] = 0,board[2][23] = 0,board[2][24] = 1,board[2][2] = 1,board[2][3] = 0,board[2][4] = 0,board[2][5] = 0,board[2][6] = 0,board[2][7] = 0,board[2][8] = 0,board[2][9] = 0,board[3][0] = 1,board[3][10] = 0,board[3][11] = 0,board[3][12] = 0,board[3][13] = 0,board[3][14] = 0,board[3][15] = 1,board[3][16] = 1,board[3][17] = 1,board[3][18] = 1,board[3][19] = 1,board[3][1] = 1,board[3][20] = 1,board[3][21] = 1,board[3][22] = 1,board[3][23] = 0,board[3][24] = 0,board[3][2] = 0,board[3][3] = 0,board[3][4] = 0,board[3][5] = 0,board[3][6] = 0,board[3][7] = 0,board[3][8] = 0,board[3][9] = 0,board[4][0] = 1,board[4][10] = 1,board[4][11] = 0,board[4][12] = 1,board[4][13] = 1,board[4][14] = 1,board[4][15] = 1,board[4][16] = 1,board[4][17] = 1,board[4][18] = 1,board[4][19] = 1,board[4][1] = 1,board[4][20] = 1,board[4][21] = 1,board[4][22] = 1,board[4][23] = 0,board[4][24] = 0,board[4][2] = 0,board[4][3] = 0,board[4][4] = 0,board[4][5] = 0,board[4][6] = 1,board[4][7] = 1,board[4][8] = 1,board[4][9] = 1,board[5][0] = 1,board[5][10] = 0,board[5][11] = 1,board[5][12] = 0,board[5][13] = 0,board[5][14] = 0,board[5][15] = 0,board[5][16] = 1,board[5][17] = 1,board[5][18] = 1,board[5][19] = 1,board[5][1] = 0,board[5][20] = 1,board[5][21] = 1,board[5][22] = 0,board[5][23] = 0,board[5][24] = 0,board[5][2] = 1,board[5][3] = 0,board[5][4] = 0,board[5][5] = 1,board[5][6] = 1,board[5][7] = 0,board[5][8] = 0,board[5][9] = 0,board[6][0] = 1,board[6][10] = 1,board[6][11] = 0,board[6][12] = 0,board[6][13] = 0,board[6][14] = 0,board[6][15] = 0,board[6][16] = 0,board[6][17] = 0,board[6][18] = 1,board[6][19] = 1,board[6][1] = 0,board[6][20] = 1,board[6][21] = 0,board[6][22] = 0,board[6][23] = 0,board[6][24] = 0,board[6][2] = 0,board[6][3] = 1,board[6][4] = 1,board[6][5] = 0,board[6][6] = 0,board[6][7] = 0,board[6][8] = 0,board[6][9] = 0,board[7][0] = 1,board[7][10] = 1,board[7][11] = 0,board[7][12] = 0,board[7][13] = 0,board[7][14] = 0,board[7][15] = 0,board[7][16] = 0,board[7][17] = 0,board[7][18] = 0,board[7][19] = 0,board[7][1] = 1,board[7][20] = 0,board[7][21] = 0,board[7][22] = 0,board[7][23] = 0,board[7][24] = 1,board[7][2] = 0,board[7][3] = 0,board[7][4] = 0,board[7][5] = 0,board[7][6] = 0,board[7][7] = 0,board[7][8] = 0,board[7][9] = 0,board[8][0] = 0,board[8][10] = 1,board[8][11] = 1,board[8][12] = 1,board[8][13] = 1,board[8][14] = 0,board[8][15] = 0,board[8][16] = 0,board[8][17] = 0,board[8][18] = 0,board[8][19] = 0,board[8][1] = 1,board[8][20] = 0,board[8][21] = 0,board[8][22] = 0,board[8][23] = 1,board[8][24] = 1,board[8][2] = 1,board[8][3] = 0,board[8][4] = 0,board[8][5] = 0,board[8][6] = 0,board[8][7] = 0,board[8][8] = 1,board[8][9] = 1,board[9][0] = 0,board[9][10] = 1,board[9][11] = 1,board[9][12] = 1,board[9][13] = 1,board[9][14] = 1,board[9][15] = 1,board[9][16] = 1,board[9][17] = 0,board[9][18] = 0,board[9][19] = 0,board[9][1] = 0,board[9][20] = 0,board[9][21] = 1,board[9][22] = 1,board[9][23] = 1,board[9][24] = 1,board[9][2] = 1,board[9][3] = 1,board[9][4] = 1,board[9][5] = 1,board[9][6] = 1,board[9][7] = 1,board[9][8] = 1,board[9][9] = 1]"}; 131 132 for (int i = 0; i <= 150; i = i + 10) { 133 134 String no = String.valueOf(i); 135 while (no.length() < 3) 136 no = "0" + no; 137 138 System.out.println("Problem file data" + no + ".nin"); 139 example.readFromFile("src/main/java/org/jacop/examples/fd/nonogram/nonogramRepository/data" + no + ".nin"); 140 example.model(); 141 142 if (example.searchAll()) 143 System.out.println("Solution(s) found"); 144 145 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 146 assertEquals(solutions[i / 10], example.store.toStringOrderedVars()); 147 } 148 149 } 150 testQCP()151 @Test public void testQCP() { 152 153 System.out.println("Solving QCP with restart search."); 154 QCP example = new QCP(); 155 example.model(); 156 157 if (example.searchWithRestarts()) 158 System.out.print(" Solution(s) found "); 159 160 Set<String> solutions = new HashSet<>(); 161 solutions.add( 162 "[x0_0 = 3,x0_1 = 4,x0_10 = 0,x0_11 = 10,x0_12 = 2,x0_13 = 19,x0_14 = 6,x0_15 = 9,x0_16 = 12,x0_17 = 5,x0_18 = 18,x0_19 = 7,x0_2 = 21,x0_20 = 14,x0_21 = 11,x0_22 = 8,x0_23 = 17,x0_24 = 1,x0_3 = 23,x0_4 = 24,x0_5 = 13,x0_6 = 22,x0_7 = 15,x0_8 = 16,x0_9 = 20,x10_0 = 11,x10_1 = 9,x10_10 = 15,x10_11 = 7,x10_12 = 19,x10_13 = 13,x10_14 = 24,x10_15 = 14,x10_16 = 16,x10_17 = 6,x10_18 = 12,x10_19 = 1,x10_2 = 23,x10_20 = 5,x10_21 = 22,x10_22 = 0,x10_23 = 21,x10_24 = 2,x10_3 = 20,x10_4 = 4,x10_5 = 18,x10_6 = 10,x10_7 = 17,x10_8 = 8,x10_9 = 3,x11_0 = 19,x11_1 = 6,x11_10 = 21,x11_11 = 24,x11_12 = 20,x11_13 = 15,x11_14 = 12,x11_15 = 2,x11_16 = 13,x11_17 = 17,x11_18 = 7,x11_19 = 4,x11_2 = 8,x11_20 = 11,x11_21 = 16,x11_22 = 1,x11_23 = 18,x11_24 = 5,x11_3 = 22,x11_4 = 3,x11_5 = 14,x11_6 = 23,x11_7 = 0,x11_8 = 9,x11_9 = 10,x12_0 = 21,x12_1 = 3,x12_10 = 6,x12_11 = 12,x12_12 = 24,x12_13 = 2,x12_14 = 1,x12_15 = 19,x12_16 = 0,x12_17 = 11,x12_18 = 20,x12_19 = 5,x12_2 = 14,x12_20 = 10,x12_21 = 15,x12_22 = 22,x12_23 = 8,x12_24 = 18,x12_3 = 4,x12_4 = 7,x12_5 = 9,x12_6 = 17,x12_7 = 13,x12_8 = 23,x12_9 = 16,x13_0 = 16,x13_1 = 7,x13_10 = 9,x13_11 = 19,x13_12 = 22,x13_13 = 23,x13_14 = 20,x13_15 = 18,x13_16 = 3,x13_17 = 10,x13_18 = 8,x13_19 = 14,x13_2 = 0,x13_20 = 15,x13_21 = 24,x13_22 = 12,x13_23 = 13,x13_24 = 11,x13_3 = 17,x13_4 = 21,x13_5 = 6,x13_6 = 4,x13_7 = 2,x13_8 = 1,x13_9 = 5,x14_0 = 20,x14_1 = 10,x14_10 = 17,x14_11 = 6,x14_12 = 7,x14_13 = 12,x14_14 = 3,x14_15 = 5,x14_16 = 15,x14_17 = 13,x14_18 = 4,x14_19 = 18,x14_2 = 22,x14_20 = 0,x14_21 = 9,x14_22 = 23,x14_23 = 24,x14_24 = 8,x14_3 = 14,x14_4 = 16,x14_5 = 19,x14_6 = 11,x14_7 = 1,x14_8 = 2,x14_9 = 21,x15_0 = 4,x15_1 = 11,x15_10 = 5,x15_11 = 0,x15_12 = 15,x15_13 = 20,x15_14 = 9,x15_15 = 12,x15_16 = 1,x15_17 = 8,x15_18 = 2,x15_19 = 3,x15_2 = 17,x15_20 = 22,x15_21 = 23,x15_22 = 16,x15_23 = 10,x15_24 = 13,x15_3 = 24,x15_4 = 14,x15_5 = 7,x15_6 = 21,x15_7 = 18,x15_8 = 6,x15_9 = 19,x16_0 = 10,x16_1 = 2,x16_10 = 22,x16_11 = 23,x16_12 = 5,x16_13 = 16,x16_14 = 4,x16_15 = 3,x16_16 = 17,x16_17 = 1,x16_18 = 14,x16_19 = 6,x16_2 = 24,x16_20 = 8,x16_21 = 21,x16_22 = 15,x16_23 = 11,x16_24 = 9,x16_3 = 19,x16_4 = 12,x16_5 = 0,x16_6 = 18,x16_7 = 20,x16_8 = 7,x16_9 = 13,x17_0 = 14,x17_1 = 12,x17_10 = 13,x17_11 = 15,x17_12 = 6,x17_13 = 1,x17_14 = 8,x17_15 = 24,x17_16 = 19,x17_17 = 3,x17_18 = 23,x17_19 = 22,x17_2 = 4,x17_20 = 21,x17_21 = 17,x17_22 = 11,x17_23 = 0,x17_24 = 10,x17_3 = 16,x17_4 = 2,x17_5 = 5,x17_6 = 20,x17_7 = 9,x17_8 = 18,x17_9 = 7,x18_0 = 12,x18_1 = 14,x18_10 = 2,x18_11 = 20,x18_12 = 18,x18_13 = 10,x18_14 = 11,x18_15 = 16,x18_16 = 24,x18_17 = 15,x18_18 = 19,x18_19 = 23,x18_2 = 1,x18_20 = 13,x18_21 = 3,x18_22 = 17,x18_23 = 7,x18_24 = 22,x18_3 = 6,x18_4 = 5,x18_5 = 8,x18_6 = 9,x18_7 = 4,x18_8 = 21,x18_9 = 0,x19_0 = 9,x19_1 = 23,x19_10 = 11,x19_11 = 16,x19_12 = 4,x19_13 = 21,x19_14 = 14,x19_15 = 7,x19_16 = 18,x19_17 = 24,x19_18 = 3,x19_19 = 15,x19_2 = 20,x19_20 = 19,x19_21 = 5,x19_22 = 6,x19_23 = 22,x19_24 = 17,x19_3 = 8,x19_4 = 13,x19_5 = 2,x19_6 = 0,x19_7 = 12,x19_8 = 10,x19_9 = 1,x1_0 = 24,x1_1 = 19,x1_10 = 23,x1_11 = 18,x1_12 = 1,x1_13 = 7,x1_14 = 13,x1_15 = 22,x1_16 = 9,x1_17 = 20,x1_18 = 10,x1_19 = 11,x1_2 = 12,x1_20 = 16,x1_21 = 6,x1_22 = 2,x1_23 = 5,x1_24 = 14,x1_3 = 15,x1_4 = 0,x1_5 = 3,x1_6 = 8,x1_7 = 21,x1_8 = 17,x1_9 = 4,x20_0 = 22,x20_1 = 16,x20_10 = 12,x20_11 = 1,x20_12 = 9,x20_13 = 3,x20_14 = 7,x20_15 = 11,x20_16 = 14,x20_17 = 21,x20_18 = 0,x20_19 = 13,x20_2 = 6,x20_20 = 17,x20_21 = 18,x20_22 = 10,x20_23 = 20,x20_24 = 24,x20_3 = 5,x20_4 = 23,x20_5 = 4,x20_6 = 15,x20_7 = 8,x20_8 = 19,x20_9 = 2,x21_0 = 7,x21_1 = 24,x21_10 = 8,x21_11 = 14,x21_12 = 16,x21_13 = 9,x21_14 = 23,x21_15 = 15,x21_16 = 21,x21_17 = 19,x21_18 = 13,x21_19 = 12,x21_2 = 2,x21_20 = 3,x21_21 = 20,x21_22 = 5,x21_23 = 4,x21_24 = 0,x21_3 = 1,x21_4 = 18,x21_5 = 17,x21_6 = 6,x21_7 = 10,x21_8 = 11,x21_9 = 22,x22_0 = 0,x22_1 = 8,x22_10 = 16,x22_11 = 17,x22_12 = 23,x22_13 = 24,x22_14 = 15,x22_15 = 6,x22_16 = 11,x22_17 = 4,x22_18 = 21,x22_19 = 19,x22_2 = 18,x22_20 = 20,x22_21 = 2,x22_22 = 13,x22_23 = 9,x22_24 = 3,x22_3 = 7,x22_4 = 10,x22_5 = 12,x22_6 = 1,x22_7 = 22,x22_8 = 5,x22_9 = 14,x23_0 = 18,x23_1 = 21,x23_10 = 20,x23_11 = 11,x23_12 = 10,x23_13 = 17,x23_14 = 19,x23_15 = 1,x23_16 = 4,x23_17 = 16,x23_18 = 6,x23_19 = 0,x23_2 = 5,x23_20 = 2,x23_21 = 14,x23_22 = 7,x23_23 = 3,x23_24 = 23,x23_3 = 9,x23_4 = 8,x23_5 = 22,x23_6 = 12,x23_7 = 24,x23_8 = 13,x23_9 = 15,x24_0 = 13,x24_1 = 0,x24_10 = 1,x24_11 = 5,x24_12 = 17,x24_13 = 14,x24_14 = 2,x24_15 = 10,x24_16 = 20,x24_17 = 23,x24_18 = 24,x24_19 = 8,x24_2 = 9,x24_20 = 6,x24_21 = 7,x24_22 = 18,x24_23 = 16,x24_24 = 4,x24_3 = 11,x24_4 = 22,x24_5 = 21,x24_6 = 19,x24_7 = 3,x24_8 = 15,x24_9 = 12,x2_0 = 6,x2_1 = 13,x2_10 = 4,x2_11 = 9,x2_12 = 11,x2_13 = 5,x2_14 = 22,x2_15 = 8,x2_16 = 2,x2_17 = 18,x2_18 = 17,x2_19 = 10,x2_2 = 3,x2_20 = 24,x2_21 = 0,x2_22 = 19,x2_23 = 1,x2_24 = 12,x2_3 = 21,x2_4 = 15,x2_5 = 16,x2_6 = 14,x2_7 = 7,x2_8 = 20,x2_9 = 23,x3_0 = 5,x3_1 = 17,x3_10 = 18,x3_11 = 4,x3_12 = 3,x3_13 = 0,x3_14 = 21,x3_15 = 23,x3_16 = 22,x3_17 = 12,x3_18 = 1,x3_19 = 2,x3_2 = 7,x3_20 = 9,x3_21 = 8,x3_22 = 20,x3_23 = 15,x3_24 = 6,x3_3 = 13,x3_4 = 19,x3_5 = 10,x3_6 = 16,x3_7 = 11,x3_8 = 14,x3_9 = 24,x4_0 = 15,x4_1 = 20,x4_10 = 3,x4_11 = 21,x4_12 = 12,x4_13 = 18,x4_14 = 17,x4_15 = 13,x4_16 = 8,x4_17 = 7,x4_18 = 5,x4_19 = 9,x4_2 = 10,x4_20 = 4,x4_21 = 19,x4_22 = 14,x4_23 = 2,x4_24 = 16,x4_3 = 0,x4_4 = 11,x4_5 = 1,x4_6 = 24,x4_7 = 23,x4_8 = 22,x4_9 = 6,x5_0 = 17,x5_1 = 1,x5_10 = 7,x5_11 = 3,x5_12 = 0,x5_13 = 11,x5_14 = 5,x5_15 = 20,x5_16 = 23,x5_17 = 14,x5_18 = 22,x5_19 = 24,x5_2 = 13,x5_20 = 18,x5_21 = 10,x5_22 = 21,x5_23 = 6,x5_24 = 19,x5_3 = 12,x5_4 = 9,x5_5 = 15,x5_6 = 2,x5_7 = 16,x5_8 = 4,x5_9 = 8,x6_0 = 2,x6_1 = 18,x6_10 = 24,x6_11 = 22,x6_12 = 14,x6_13 = 8,x6_14 = 10,x6_15 = 21,x6_16 = 5,x6_17 = 0,x6_18 = 9,x6_19 = 20,x6_2 = 16,x6_20 = 1,x6_21 = 13,x6_22 = 4,x6_23 = 19,x6_24 = 15,x6_3 = 3,x6_4 = 17,x6_5 = 23,x6_6 = 7,x6_7 = 6,x6_8 = 12,x6_9 = 11,x7_0 = 8,x7_1 = 5,x7_10 = 14,x7_11 = 2,x7_12 = 13,x7_13 = 4,x7_14 = 18,x7_15 = 17,x7_16 = 6,x7_17 = 22,x7_18 = 16,x7_19 = 21,x7_2 = 15,x7_20 = 7,x7_21 = 12,x7_22 = 24,x7_23 = 23,x7_24 = 20,x7_3 = 10,x7_4 = 1,x7_5 = 11,x7_6 = 3,x7_7 = 19,x7_8 = 0,x7_9 = 9,x8_0 = 23,x8_1 = 22,x8_10 = 19,x8_11 = 8,x8_12 = 21,x8_13 = 6,x8_14 = 0,x8_15 = 4,x8_16 = 10,x8_17 = 2,x8_18 = 15,x8_19 = 16,x8_2 = 11,x8_20 = 12,x8_21 = 1,x8_22 = 9,x8_23 = 14,x8_24 = 7,x8_3 = 18,x8_4 = 20,x8_5 = 24,x8_6 = 13,x8_7 = 5,x8_8 = 3,x8_9 = 17,x9_0 = 1,x9_1 = 15,x9_10 = 10,x9_11 = 13,x9_12 = 8,x9_13 = 22,x9_14 = 16,x9_15 = 0,x9_16 = 7,x9_17 = 9,x9_18 = 11,x9_19 = 17,x9_2 = 19,x9_20 = 23,x9_21 = 4,x9_22 = 3,x9_23 = 12,x9_24 = 21,x9_3 = 2,x9_4 = 6,x9_5 = 20,x9_6 = 5,x9_7 = 14,x9_8 = 24,x9_9 = 18]"); 163 solutions.add( 164 "[x0_0 = 3,x0_1 = 4,x0_10 = 0,x0_11 = 10,x0_12 = 2,x0_13 = 19,x0_14 = 6,x0_15 = 9,x0_16 = 12,x0_17 = 5,x0_18 = 18,x0_19 = 7,x0_2 = 21,x0_20 = 14,x0_21 = 11,x0_22 = 8,x0_23 = 17,x0_24 = 1,x0_3 = 23,x0_4 = 24,x0_5 = 13,x0_6 = 22,x0_7 = 15,x0_8 = 16,x0_9 = 20,x10_0 = 11,x10_1 = 9,x10_10 = 15,x10_11 = 7,x10_12 = 19,x10_13 = 13,x10_14 = 24,x10_15 = 14,x10_16 = 16,x10_17 = 6,x10_18 = 12,x10_19 = 1,x10_2 = 23,x10_20 = 5,x10_21 = 22,x10_22 = 0,x10_23 = 21,x10_24 = 2,x10_3 = 20,x10_4 = 4,x10_5 = 18,x10_6 = 10,x10_7 = 17,x10_8 = 8,x10_9 = 3,x11_0 = 19,x11_1 = 6,x11_10 = 21,x11_11 = 24,x11_12 = 20,x11_13 = 15,x11_14 = 12,x11_15 = 2,x11_16 = 13,x11_17 = 17,x11_18 = 7,x11_19 = 4,x11_2 = 8,x11_20 = 11,x11_21 = 16,x11_22 = 1,x11_23 = 18,x11_24 = 5,x11_3 = 22,x11_4 = 3,x11_5 = 14,x11_6 = 23,x11_7 = 0,x11_8 = 9,x11_9 = 10,x12_0 = 21,x12_1 = 3,x12_10 = 6,x12_11 = 12,x12_12 = 24,x12_13 = 2,x12_14 = 1,x12_15 = 19,x12_16 = 0,x12_17 = 11,x12_18 = 20,x12_19 = 5,x12_2 = 14,x12_20 = 10,x12_21 = 15,x12_22 = 22,x12_23 = 8,x12_24 = 18,x12_3 = 4,x12_4 = 7,x12_5 = 9,x12_6 = 17,x12_7 = 13,x12_8 = 23,x12_9 = 16,x13_0 = 16,x13_1 = 7,x13_10 = 9,x13_11 = 19,x13_12 = 22,x13_13 = 23,x13_14 = 20,x13_15 = 18,x13_16 = 3,x13_17 = 10,x13_18 = 8,x13_19 = 14,x13_2 = 0,x13_20 = 15,x13_21 = 24,x13_22 = 12,x13_23 = 13,x13_24 = 11,x13_3 = 17,x13_4 = 21,x13_5 = 6,x13_6 = 4,x13_7 = 2,x13_8 = 1,x13_9 = 5,x14_0 = 20,x14_1 = 10,x14_10 = 17,x14_11 = 6,x14_12 = 7,x14_13 = 12,x14_14 = 3,x14_15 = 5,x14_16 = 15,x14_17 = 13,x14_18 = 4,x14_19 = 18,x14_2 = 22,x14_20 = 0,x14_21 = 9,x14_22 = 23,x14_23 = 24,x14_24 = 8,x14_3 = 14,x14_4 = 16,x14_5 = 19,x14_6 = 11,x14_7 = 1,x14_8 = 2,x14_9 = 21,x15_0 = 4,x15_1 = 11,x15_10 = 5,x15_11 = 0,x15_12 = 15,x15_13 = 20,x15_14 = 9,x15_15 = 12,x15_16 = 1,x15_17 = 8,x15_18 = 2,x15_19 = 3,x15_2 = 17,x15_20 = 22,x15_21 = 23,x15_22 = 16,x15_23 = 10,x15_24 = 13,x15_3 = 24,x15_4 = 14,x15_5 = 7,x15_6 = 21,x15_7 = 18,x15_8 = 6,x15_9 = 19,x16_0 = 10,x16_1 = 2,x16_10 = 22,x16_11 = 23,x16_12 = 5,x16_13 = 16,x16_14 = 4,x16_15 = 3,x16_16 = 17,x16_17 = 1,x16_18 = 14,x16_19 = 6,x16_2 = 24,x16_20 = 8,x16_21 = 21,x16_22 = 15,x16_23 = 11,x16_24 = 9,x16_3 = 19,x16_4 = 12,x16_5 = 0,x16_6 = 18,x16_7 = 20,x16_8 = 7,x16_9 = 13,x17_0 = 14,x17_1 = 12,x17_10 = 13,x17_11 = 15,x17_12 = 6,x17_13 = 1,x17_14 = 8,x17_15 = 24,x17_16 = 19,x17_17 = 3,x17_18 = 23,x17_19 = 22,x17_2 = 4,x17_20 = 21,x17_21 = 17,x17_22 = 11,x17_23 = 0,x17_24 = 10,x17_3 = 16,x17_4 = 2,x17_5 = 5,x17_6 = 20,x17_7 = 9,x17_8 = 18,x17_9 = 7,x18_0 = 12,x18_1 = 14,x18_10 = 2,x18_11 = 20,x18_12 = 18,x18_13 = 21,x18_14 = 11,x18_15 = 16,x18_16 = 24,x18_17 = 15,x18_18 = 19,x18_19 = 23,x18_2 = 1,x18_20 = 13,x18_21 = 3,x18_22 = 17,x18_23 = 7,x18_24 = 22,x18_3 = 6,x18_4 = 5,x18_5 = 8,x18_6 = 9,x18_7 = 4,x18_8 = 10,x18_9 = 0,x19_0 = 9,x19_1 = 23,x19_10 = 11,x19_11 = 16,x19_12 = 4,x19_13 = 10,x19_14 = 14,x19_15 = 7,x19_16 = 18,x19_17 = 24,x19_18 = 3,x19_19 = 15,x19_2 = 20,x19_20 = 19,x19_21 = 5,x19_22 = 6,x19_23 = 22,x19_24 = 17,x19_3 = 8,x19_4 = 13,x19_5 = 2,x19_6 = 0,x19_7 = 12,x19_8 = 21,x19_9 = 1,x1_0 = 24,x1_1 = 19,x1_10 = 23,x1_11 = 18,x1_12 = 1,x1_13 = 7,x1_14 = 13,x1_15 = 22,x1_16 = 9,x1_17 = 20,x1_18 = 10,x1_19 = 11,x1_2 = 12,x1_20 = 16,x1_21 = 6,x1_22 = 2,x1_23 = 5,x1_24 = 14,x1_3 = 15,x1_4 = 0,x1_5 = 3,x1_6 = 8,x1_7 = 21,x1_8 = 17,x1_9 = 4,x20_0 = 22,x20_1 = 16,x20_10 = 12,x20_11 = 1,x20_12 = 9,x20_13 = 3,x20_14 = 7,x20_15 = 11,x20_16 = 14,x20_17 = 21,x20_18 = 0,x20_19 = 13,x20_2 = 6,x20_20 = 17,x20_21 = 18,x20_22 = 10,x20_23 = 20,x20_24 = 24,x20_3 = 5,x20_4 = 23,x20_5 = 4,x20_6 = 15,x20_7 = 8,x20_8 = 19,x20_9 = 2,x21_0 = 7,x21_1 = 24,x21_10 = 8,x21_11 = 14,x21_12 = 16,x21_13 = 9,x21_14 = 23,x21_15 = 15,x21_16 = 21,x21_17 = 19,x21_18 = 13,x21_19 = 12,x21_2 = 2,x21_20 = 3,x21_21 = 20,x21_22 = 5,x21_23 = 4,x21_24 = 0,x21_3 = 1,x21_4 = 18,x21_5 = 17,x21_6 = 6,x21_7 = 10,x21_8 = 11,x21_9 = 22,x22_0 = 0,x22_1 = 8,x22_10 = 16,x22_11 = 17,x22_12 = 23,x22_13 = 24,x22_14 = 15,x22_15 = 6,x22_16 = 11,x22_17 = 4,x22_18 = 21,x22_19 = 19,x22_2 = 18,x22_20 = 20,x22_21 = 2,x22_22 = 13,x22_23 = 9,x22_24 = 3,x22_3 = 7,x22_4 = 10,x22_5 = 12,x22_6 = 1,x22_7 = 22,x22_8 = 5,x22_9 = 14,x23_0 = 18,x23_1 = 21,x23_10 = 20,x23_11 = 11,x23_12 = 10,x23_13 = 17,x23_14 = 19,x23_15 = 1,x23_16 = 4,x23_17 = 16,x23_18 = 6,x23_19 = 0,x23_2 = 5,x23_20 = 2,x23_21 = 14,x23_22 = 7,x23_23 = 3,x23_24 = 23,x23_3 = 9,x23_4 = 8,x23_5 = 22,x23_6 = 12,x23_7 = 24,x23_8 = 13,x23_9 = 15,x24_0 = 13,x24_1 = 0,x24_10 = 1,x24_11 = 5,x24_12 = 17,x24_13 = 14,x24_14 = 2,x24_15 = 10,x24_16 = 20,x24_17 = 23,x24_18 = 24,x24_19 = 8,x24_2 = 9,x24_20 = 6,x24_21 = 7,x24_22 = 18,x24_23 = 16,x24_24 = 4,x24_3 = 11,x24_4 = 22,x24_5 = 21,x24_6 = 19,x24_7 = 3,x24_8 = 15,x24_9 = 12,x2_0 = 6,x2_1 = 13,x2_10 = 4,x2_11 = 9,x2_12 = 11,x2_13 = 5,x2_14 = 22,x2_15 = 8,x2_16 = 2,x2_17 = 18,x2_18 = 17,x2_19 = 10,x2_2 = 3,x2_20 = 24,x2_21 = 0,x2_22 = 19,x2_23 = 1,x2_24 = 12,x2_3 = 21,x2_4 = 15,x2_5 = 16,x2_6 = 14,x2_7 = 7,x2_8 = 20,x2_9 = 23,x3_0 = 5,x3_1 = 17,x3_10 = 18,x3_11 = 4,x3_12 = 3,x3_13 = 0,x3_14 = 21,x3_15 = 23,x3_16 = 22,x3_17 = 12,x3_18 = 1,x3_19 = 2,x3_2 = 7,x3_20 = 9,x3_21 = 8,x3_22 = 20,x3_23 = 15,x3_24 = 6,x3_3 = 13,x3_4 = 19,x3_5 = 10,x3_6 = 16,x3_7 = 11,x3_8 = 14,x3_9 = 24,x4_0 = 15,x4_1 = 20,x4_10 = 3,x4_11 = 21,x4_12 = 12,x4_13 = 18,x4_14 = 17,x4_15 = 13,x4_16 = 8,x4_17 = 7,x4_18 = 5,x4_19 = 9,x4_2 = 10,x4_20 = 4,x4_21 = 19,x4_22 = 14,x4_23 = 2,x4_24 = 16,x4_3 = 0,x4_4 = 11,x4_5 = 1,x4_6 = 24,x4_7 = 23,x4_8 = 22,x4_9 = 6,x5_0 = 17,x5_1 = 1,x5_10 = 7,x5_11 = 3,x5_12 = 0,x5_13 = 11,x5_14 = 5,x5_15 = 20,x5_16 = 23,x5_17 = 14,x5_18 = 22,x5_19 = 24,x5_2 = 13,x5_20 = 18,x5_21 = 10,x5_22 = 21,x5_23 = 6,x5_24 = 19,x5_3 = 12,x5_4 = 9,x5_5 = 15,x5_6 = 2,x5_7 = 16,x5_8 = 4,x5_9 = 8,x6_0 = 2,x6_1 = 18,x6_10 = 24,x6_11 = 22,x6_12 = 14,x6_13 = 8,x6_14 = 10,x6_15 = 21,x6_16 = 5,x6_17 = 0,x6_18 = 9,x6_19 = 20,x6_2 = 16,x6_20 = 1,x6_21 = 13,x6_22 = 4,x6_23 = 19,x6_24 = 15,x6_3 = 3,x6_4 = 17,x6_5 = 23,x6_6 = 7,x6_7 = 6,x6_8 = 12,x6_9 = 11,x7_0 = 8,x7_1 = 5,x7_10 = 14,x7_11 = 2,x7_12 = 13,x7_13 = 4,x7_14 = 18,x7_15 = 17,x7_16 = 6,x7_17 = 22,x7_18 = 16,x7_19 = 21,x7_2 = 15,x7_20 = 7,x7_21 = 12,x7_22 = 24,x7_23 = 23,x7_24 = 20,x7_3 = 10,x7_4 = 1,x7_5 = 11,x7_6 = 3,x7_7 = 19,x7_8 = 0,x7_9 = 9,x8_0 = 23,x8_1 = 22,x8_10 = 19,x8_11 = 8,x8_12 = 21,x8_13 = 6,x8_14 = 0,x8_15 = 4,x8_16 = 10,x8_17 = 2,x8_18 = 15,x8_19 = 16,x8_2 = 11,x8_20 = 12,x8_21 = 1,x8_22 = 9,x8_23 = 14,x8_24 = 7,x8_3 = 18,x8_4 = 20,x8_5 = 24,x8_6 = 13,x8_7 = 5,x8_8 = 3,x8_9 = 17,x9_0 = 1,x9_1 = 15,x9_10 = 10,x9_11 = 13,x9_12 = 8,x9_13 = 22,x9_14 = 16,x9_15 = 0,x9_16 = 7,x9_17 = 9,x9_18 = 11,x9_19 = 17,x9_2 = 19,x9_20 = 23,x9_21 = 4,x9_22 = 3,x9_23 = 12,x9_24 = 21,x9_3 = 2,x9_4 = 6,x9_5 = 20,x9_6 = 5,x9_7 = 14,x9_8 = 24,x9_9 = 18]"); 165 assertEquals(true, solutions.contains(example.store.toStringOrderedVars())); 166 167 } 168 testArchFriends()169 @Test public void testArchFriends() { 170 171 ArchFriends example = new ArchFriends(); 172 example.model(); 173 174 assertEquals(true, example.searchAllAtOnce()); 175 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 176 177 } 178 testBabySitting()179 @Test public void testBabySitting() { 180 181 BabySitting example = new BabySitting(); 182 183 example.model(); 184 185 assertEquals(true, example.searchAllAtOnce()); 186 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 187 188 } 189 testBasicLogicPascal()190 @Test public void testBasicLogicPascal() { 191 192 BasicLogicPascal example = new BasicLogicPascal(); 193 194 example.model(); 195 196 assertEquals(true, example.searchAllAtOnce()); 197 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 198 199 } 200 testBIBD()201 @Test public void testBIBD() { 202 203 BIBD example = new BIBD(); 204 205 example.v = 7; 206 example.b = 7; 207 example.r = 3; 208 example.k = 3; 209 example.lambda = 1; 210 211 example.model(); 212 213 assertEquals(true, example.searchAllAtOnce()); 214 assertEquals(151200, example.search.getSolutionListener().solutionsNo()); 215 216 } 217 218 testBlueberryMuffins()219 @Test public void testBlueberryMuffins() { 220 221 BlueberryMuffins example = new BlueberryMuffins(); 222 223 example.model(); 224 225 assertEquals(true, example.searchAllAtOnce()); 226 assertEquals(24, example.search.getSolutionListener().solutionsNo()); 227 228 } 229 230 testBreakingNews()231 @Test public void testBreakingNews() { 232 233 BreakingNews example = new BreakingNews(); 234 235 example.model(); 236 237 assertEquals(true, example.searchAllAtOnce()); 238 assertEquals(480, example.search.getSolutionListener().solutionsNo()); 239 } 240 testBuildingBlocks()241 @Test public void testBuildingBlocks() { 242 243 BuildingBlocks example = new BuildingBlocks(); 244 245 example.model(); 246 247 assertEquals(true, example.searchAllAtOnce()); 248 assertEquals(24, example.search.getSolutionListener().solutionsNo()); 249 } 250 testCalendarMenBasicModel()251 @Test public void testCalendarMenBasicModel() { 252 253 CalendarMen exampleBasic = new CalendarMen(); 254 255 exampleBasic.modelBasic(); 256 257 assertEquals(true, exampleBasic.searchAllAtOnce()); 258 assertEquals(1, exampleBasic.search.getSolutionListener().solutionsNo()); 259 260 exampleBasic.getSearch().assignSolution(); 261 262 assertEquals( 263 "[Antonio = 3,Brett = 10,Cliff = 2,Dabney = 6,Ed = 9,Francisco = 7,Griff = 5,Harry = 11,Ivor = 12,John = 1,Karl = 4,Lorentzo = 8,Moross = 6,Nelsen = 4,ORourke = 9,Paulos = 5,Quarello = 8,Reede = 1,Sheldon = 10,Taylor = 7,Uhler = 11,Vickers = 12,Wang = 2,Xiao = 3,archery = 9,badmington = 11,croquet = 10,football = 12,golf = 1,hockey = 5,lacrosse = 8,offset1 = 3,offset2 = 6,p_vauliting = 3,rowing = 7,squash = 2,tennis = 6,volleyball = 4]", 264 exampleBasic.store.toStringOrderedVars()); 265 } 266 testCalendarMen()267 @Test public void testCalendarMen() { 268 269 CalendarMen example = new CalendarMen(); 270 271 example.model(); 272 273 assertEquals(true, example.searchAllAtOnce()); 274 275 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 276 277 example.getSearch().assignSolution(); 278 279 assertEquals( 280 "[Antonio = 3,Brett = 10,Cliff = 2,Dabney = 6,Ed = 9,Francisco = 7,Griff = 5,Harry = 11,Ivor = 12,John = 1,Karl = 4,Lorenzo = 8,Moross = 6,Nelsen = 4,O_Rourke = 9,Paulos = 5,Quarello = 8,Reede = 1,Sheldon = 10,Taylor = 7,Uhler = 11,Vickers = 12,Wang = 2,Xiao = 3,archery = 9,badminton = 11,c10_1_m = 3,c10_1_x = 8,c10_2_m = 2,c10_2_x = 9,c10_3_m = 1,c10_3_x = 10,c11_1_m = 1,c11_1_x = 9,c11_2_m = 3,c11_2_x = 10,c11_3_m = 2,c11_3_x = 11,c12_1_m = 2,c12_2_m = 1,c12_3_m = 3,c1_1_m = 2,c1_2_m = 3,c1_3_m = 1,c2_1_m = 1,c2_1_x = 4,c2_2_m = 3,c2_2_x = 5,c2_3_m = 2,c2_3_x = 6,c4_1_m = 3,c4_2_m = 2,c4_3_m = 1,c9_1_m = 2,c9_2_m = 1,c9_3_m = 3,croquet = 10,even = 6,football = 12,golf = 1,hockey = 5,lacrosse = 8,rowing = 7,squash = 2,tennis = 6,vaulting = 3,volleyball = 4]", 281 example.store.toStringOrderedVars()); 282 283 } 284 testConference()285 @Test public void testConference() { 286 287 Conference example = new Conference(); 288 289 example.model(); 290 291 assertEquals(true, example.searchAllAtOnce()); 292 assertEquals(2, example.search.getSolutionListener().solutionsNo()); 293 294 } 295 testCryptogram()296 @Test public void testCryptogram() { 297 298 String lines[][] = 299 {{"CRACK", "HACK", "ERROR"}, {"PEAR", "APPLE", "GRAPE"}, {"CRACKS", "TRACKS", "RACKET"}, {"TRIED", "RIDE", "STEER"}, 300 {"DEEMED", "SENSE", "SYSTEM"}, {"DOWN", "WWW", "ERROR"}, {"BARREL", "BROOMS", "SHOVELS"}, {"LYNNE", "LOOKS", "SLEEPY"}, 301 {"STARS", "RATE", "TREAT"}, {"DAYS", "TOO", "SHORT"}, {"BASE", "BALL", "GAMES"}, {"MEMO", "FROM", "HOMER"}, 302 {"IS", "THIS", "HERE"}}; 303 304 int noSol[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; 305 306 for (int i = 0; i < lines.length; i++) { 307 308 Cryptogram exampleLeft = new Cryptogram(); 309 exampleLeft.lines[0] = lines[i][0] + "+" + lines[i][1] + "=" + lines[i][2]; 310 exampleLeft.noLines = 1; 311 312 exampleLeft.model(); 313 314 assertEquals(true, exampleLeft.searchAllAtOnce()); 315 316 assertEquals(noSol[i], exampleLeft.search.getSolutionListener().solutionsNo()); 317 318 } 319 320 } 321 testDebruijnSequence()322 @Test public void testDebruijnSequence() { 323 324 DeBruijn example = new DeBruijn(); 325 example.base = 2; 326 example.n = 4; 327 example.m = 9; 328 329 example.model(); 330 331 assertEquals(true, example.searchAllAtOnce()); 332 333 // prints then de Bruijn sequences 334 System.out.print("de Bruijn sequence:"); 335 336 System.out.print("decimal values: "); 337 for (int i = 0; i < example.m; i++) { 338 System.out.print(example.x[i].value() + " "); 339 } 340 System.out.println(); 341 342 System.out.println("\nbinary:"); 343 344 for (int i = 0; i < example.m; i++) { 345 for (int j = 0; j < example.n; j++) { 346 System.out.print(example.binary[i][j].value() + " "); 347 } 348 System.out.println(" : " + example.x[i].value()); 349 } 350 351 assertEquals(14, example.search.getSolutionListener().solutionsNo()); 352 353 } 354 355 testDietSumWeight()356 @Test public void testDietSumWeight() { 357 358 System.out.println("Searching for all solutions using sum weight constraints"); 359 360 Diet exampleSumWeight = new Diet(); 361 362 exampleSumWeight.model(); 363 364 assertEquals(exampleSumWeight.searchAllAtOnce(), true); 365 366 Diet.printLastSolution(exampleSumWeight); 367 368 assertEquals(6, exampleSumWeight.search.getSolutionListener().solutionsNo()); 369 370 } 371 372 testDiet()373 @Test public void testDiet() { 374 375 System.out.println("Searching for all solutions using knapsack constraints"); 376 Diet exampleKnapsack = new Diet(); 377 378 exampleKnapsack.modelKnapsack(); 379 380 assertEquals(exampleKnapsack.searchAllAtOnce(), true); 381 382 Diet.printLastSolution(exampleKnapsack); 383 384 assertEquals(6, exampleKnapsack.search.getSolutionListener().solutionsNo()); 385 } 386 387 388 testDolarAndTicket()389 @Test public void testDolarAndTicket() { 390 391 DollarAndTicket example = new DollarAndTicket(); 392 393 example.model(); 394 395 assertEquals(true, example.searchAllAtOnce()); 396 assertEquals(36, example.search.getSolutionListener().solutionsNo()); 397 } 398 399 testDonaldGeraldRobert()400 @Test public void testDonaldGeraldRobert() { 401 402 DonaldGeraldRobert example = new DonaldGeraldRobert(); 403 404 example.model(); 405 406 assertEquals(true, example.searchAllAtOnce()); 407 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 408 409 } 410 testExodus()411 @Test public void testExodus() { 412 413 Exodus example = new Exodus(); 414 415 example.model(); 416 417 assertEquals(true, example.searchAllAtOnce()); 418 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 419 } 420 testFittingNumbers()421 @Test public void testFittingNumbers() { 422 423 FittingNumbers example = new FittingNumbers(); 424 425 example.model(); 426 427 assertEquals(true, example.searchAllAtOnce()); 428 assertEquals(6967, example.search.getSolutionListener().solutionsNo()); 429 } 430 431 432 testFlowers()433 @Test public void testFlowers() { 434 435 Flowers example = new Flowers(); 436 example.model(); 437 438 assertEquals(true, example.searchAllAtOnce()); 439 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 440 } 441 testFourIslands()442 @Test public void testFourIslands() { 443 444 FourIslands example = new FourIslands(); 445 example.model(); 446 447 assertEquals(true, example.searchAllAtOnce()); 448 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 449 } 450 testFurnitureMoving()451 @Test public void testFurnitureMoving() { 452 453 FurnitureMoving example = new FurnitureMoving(); 454 example.model(); 455 456 assertEquals(true, example.searchSpecific()); 457 assertEquals(36, example.search.getSolutionListener().solutionsNo()); 458 459 } 460 461 testGatesUsingDefaultTable()462 @Test public void testGatesUsingDefaultTable() { 463 464 Gates example = new Gates(); 465 example.model(); 466 467 assertEquals(true, example.searchSpecific()); 468 assertEquals(8, example.search.getSolutionListener().solutionsNo()); 469 470 } 471 testGatesUsingExtensionalSTR()472 @Test public void testGatesUsingExtensionalSTR() { 473 474 Gates example = new Gates(); 475 example.model(Gates::tableConstraintProviderUsingExtensionalSTR); 476 477 assertEquals(true, example.searchSpecific()); 478 assertEquals(8, example.search.getSolutionListener().solutionsNo()); 479 480 } 481 482 testGolf()483 @Test public void testGolf() { 484 485 Golf example = new Golf(); 486 example.model(); 487 488 assertEquals(true, example.searchAllAtOnce()); 489 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 490 } 491 testGolomb()492 @Test public void testGolomb() { 493 494 Golomb example = new Golomb(); 495 example.model(); 496 497 assertEquals(true, example.searchOptimalInfo()); 498 499 int optimalCost = example.cost.value(); 500 501 example = new Golomb(); 502 example.bound = optimalCost; 503 example.model(); 504 505 assertEquals(true, example.searchAllAtOnce()); 506 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 507 508 } 509 testHistoricHomes()510 @Test public void testHistoricHomes() { 511 512 HistoricHomes example = new HistoricHomes(); 513 example.model(); 514 515 assertEquals(true, example.searchAllAtOnce()); 516 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 517 } 518 519 520 testKakro()521 @Test public void testKakro() { 522 523 Kakro example = new Kakro(); 524 525 example.model(); 526 527 assertEquals(true, example.searchAllAtOnce()); 528 assertEquals(1, example.search.getSolutionListener().solutionsNo()); 529 530 } 531 532 testKnapsack()533 @Test public void testKnapsack() { 534 535 KnapsackExample example = new KnapsackExample(); 536 537 example.model(); 538 539 assertEquals(true, example.searchAllAtOnce()); 540 assertEquals(18, example.search.getSolutionListener().solutionsNo()); 541 } 542 testLangford()543 @Test public void testLangford() { 544 545 Langford example = new Langford(); 546 example.n = 3; 547 example.m = 10; 548 example.model(); 549 550 assertEquals(true, example.searchAllAtOnce()); 551 assertEquals(10, example.search.getSolutionListener().solutionsNo()); 552 553 Langford exampleDual = new Langford(); 554 exampleDual.n = 3; 555 exampleDual.m = 10; 556 exampleDual.modelDual(); 557 558 assertEquals(true, exampleDual.searchAllAtOnce()); 559 assertEquals(10, exampleDual.search.getSolutionListener().solutionsNo()); 560 561 } 562 563 testLectureSeries()564 @Test public void testLectureSeries() { 565 566 LectureSeries example = new LectureSeries(); 567 568 example.model(); 569 570 assertEquals(true, example.searchAllAtOnce()); 571 assertEquals(120, example.search.getSolutionListener().solutionsNo()); 572 } 573 testMagicSquares()574 @Test public void testMagicSquares() { 575 576 MagicSquares example = new MagicSquares(); 577 578 example.model(); 579 580 assertEquals(true, example.searchAllAtOnce()); 581 assertEquals(1760, example.search.getSolutionListener().solutionsNo()); 582 } 583 testMasterClass()584 @Test public void testMasterClass() { 585 586 MasterClass example = new MasterClass(); 587 example.model(); 588 589 assertEquals(true, example.searchAllAtOnce()); 590 assertEquals(12, example.search.getSolutionListener().solutionsNo()); 591 } 592 593 testMineSweeper()594 @Test public void testMineSweeper() { 595 596 MineSweeper minesweeper = new MineSweeper(); 597 598 String[] results = 599 {"[m_0_0=1,m_0_1=0,m_0_2=0,m_0_3=0,m_0_4=0,m_0_5=1,m_1_0=0,m_1_1=1,m_1_2=0,m_1_3=1,m_1_4=1,m_1_5=0,m_2_0=0,m_2_1=0,m_2_2=0,m_2_3=0,m_2_4=1,m_2_5=0,m_3_0=0,m_3_1=0,m_3_2=0,m_3_3=0,m_3_4=1,m_3_5=0,m_4_0=0,m_4_1=1,m_4_2=1,m_4_3=1,m_4_4=0,m_4_5=0,m_5_0=1,m_5_1=0,m_5_2=0,m_5_3=0,m_5_4=1,m_5_5=1,g_0_0::{-1..8},g_0_1::{-1..8},g_0_2 = 2,g_0_3::{-1..8},g_0_4 = 3,g_0_5::{-1..8},g_1_0 = 2,g_1_1::{-1..8},g_1_2::{-1..8},g_1_3::{-1..8},g_1_4::{-1..8},g_1_5::{-1..8},g_2_0::{-1..8},g_2_1::{-1..8},g_2_2 = 2,g_2_3 = 4,g_2_4::{-1..8},g_2_5 = 3,g_3_0 = 1,g_3_1::{-1..8},g_3_2 = 3,g_3_3 = 4,g_3_4::{-1..8},g_3_5::{-1..8},g_4_0::{-1..8},g_4_1::{-1..8},g_4_2::{-1..8},g_4_3::{-1..8},g_4_4::{-1..8},g_4_5 = 3,g_5_0::{-1..8},g_5_1 = 3,g_5_2::{-1..8},g_5_3 = 3,g_5_4::{-1..8},g_5_5::{-1..8}]", 600 "[m_0_0=0,m_0_1=0,m_0_2=1,m_0_3=0,m_0_4=0,m_0_5=0,m_0_6=1,m_0_7=0,m_1_0=1,m_1_1=0,m_1_2=0,m_1_3=1,m_1_4=0,m_1_5=0,m_1_6=0,m_1_7=0,m_2_0=0,m_2_1=1,m_2_2=1,m_2_3=0,m_2_4=0,m_2_5=1,m_2_6=0,m_2_7=1,m_3_0=0,m_3_1=0,m_3_2=0,m_3_3=0,m_3_4=0,m_3_5=0,m_3_6=1,m_3_7=0,m_4_0=1,m_4_1=0,m_4_2=0,m_4_3=0,m_4_4=1,m_4_5=0,m_4_6=0,m_4_7=1,m_5_0=0,m_5_1=0,m_5_2=1,m_5_3=0,m_5_4=0,m_5_5=1,m_5_6=1,m_5_7=0,m_6_0=0,m_6_1=0,m_6_2=0,m_6_3=0,m_6_4=0,m_6_5=0,m_6_6=0,m_6_7=1,m_7_0=0,m_7_1=1,m_7_2=0,m_7_3=0,m_7_4=1,m_7_5=0,m_7_6=0,m_7_7=0,g_0_0::{-1..8},g_0_1 = 2,g_0_2::{-1..8},g_0_3 = 2,g_0_4 = 1,g_0_5 = 1,g_0_6::{-1..8},g_0_7::{-1..8},g_1_0::{-1..8},g_1_1::{-1..8},g_1_2 = 4,g_1_3::{-1..8},g_1_4 = 2,g_1_5::{-1..8},g_1_6::{-1..8},g_1_7 = 2,g_2_0 = 2,g_2_1::{-1..8},g_2_2::{-1..8},g_2_3 = 2,g_2_4::{-1..8},g_2_5::{-1..8},g_2_6 = 3,g_2_7::{-1..8},g_3_0 = 2,g_3_1::{-1..8},g_3_2 = 2,g_3_3 = 2,g_3_4::{-1..8},g_3_5 = 3,g_3_6::{-1..8},g_3_7 = 3,g_4_0::{-1..8},g_4_1::{-1..8},g_4_2 = 1,g_4_3::{-1..8},g_4_4::{-1..8},g_4_5::{-1..8},g_4_6 = 4,g_4_7::{-1..8},g_5_0 = 1,g_5_1::{-1..8},g_5_2::{-1..8},g_5_3::{-1..8},g_5_4 = 2,g_5_5::{-1..8},g_5_6::{-1..8},g_5_7 = 3,g_6_0::{-1..8},g_6_1 = 2,g_6_2::{-1..8},g_6_3 = 2,g_6_4 = 2,g_6_5::{-1..8},g_6_6 = 3,g_6_7::{-1..8},g_7_0 = 1,g_7_1::{-1..8},g_7_2 = 1,g_7_3::{-1..8},g_7_4::{-1..8},g_7_5 = 1,g_7_6::{-1..8},g_7_7 = 1]", 601 "[m_0_0=0,m_0_1=0,m_0_2=0,m_0_3=0,m_0_4=1,m_0_5=0,m_0_6=0,m_0_7=0,m_0_8=0,m_0_9=0,m_1_0=1,m_1_1=0,m_1_2=0,m_1_3=1,m_1_4=0,m_1_5=1,m_1_6=0,m_1_7=1,m_1_8=1,m_1_9=0,m_2_0=1,m_2_1=1,m_2_2=0,m_2_3=0,m_2_4=0,m_2_5=1,m_2_6=0,m_2_7=1,m_2_8=0,m_2_9=0,m_3_0=0,m_3_1=0,m_3_2=0,m_3_3=0,m_3_4=0,m_3_5=0,m_3_6=0,m_3_7=0,m_3_8=1,m_3_9=0,m_4_0=1,m_4_1=0,m_4_2=0,m_4_3=0,m_4_4=0,m_4_5=0,m_4_6=1,m_4_7=0,m_4_8=1,m_4_9=0,m_5_0=0,m_5_1=0,m_5_2=1,m_5_3=0,m_5_4=1,m_5_5=0,m_5_6=0,m_5_7=0,m_5_8=0,m_5_9=0,m_6_0=0,m_6_1=1,m_6_2=0,m_6_3=0,m_6_4=0,m_6_5=0,m_6_6=1,m_6_7=0,m_6_8=0,m_6_9=0,m_7_0=1,m_7_1=0,m_7_2=0,m_7_3=0,m_7_4=1,m_7_5=0,m_7_6=0,m_7_7=0,m_7_8=1,m_7_9=0,m_8_0=0,m_8_1=1,m_8_2=0,m_8_3=1,m_8_4=0,m_8_5=0,m_8_6=1,m_8_7=0,m_8_8=1,m_8_9=1,m_9_0=0,m_9_1=0,m_9_2=1,m_9_3=0,m_9_4=0,m_9_5=1,m_9_6=0,m_9_7=0,m_9_8=0,m_9_9=0,g_0_0 = 1,g_0_1::{-1..8},g_0_2::{-1..8},g_0_3 = 2,g_0_4::{-1..8},g_0_5 = 2,g_0_6::{-1..8},g_0_7 = 2,g_0_8::{-1..8},g_0_9::{-1..8},g_1_0::{-1..8},g_1_1 = 3,g_1_2 = 2,g_1_3::{-1..8},g_1_4::{-1..8},g_1_5::{-1..8},g_1_6 = 4,g_1_7::{-1..8},g_1_8::{-1..8},g_1_9 = 1,g_2_0::{-1..8},g_2_1::{-1..8},g_2_2::{-1..8},g_2_3 = 1,g_2_4 = 3,g_2_5::{-1..8},g_2_6::{-1..8},g_2_7::{-1..8},g_2_8 = 4,g_2_9::{-1..8},g_3_0 = 3,g_3_1::{-1..8},g_3_2 = 1,g_3_3::{-1..8},g_3_4::{-1..8},g_3_5::{-1..8},g_3_6 = 3,g_3_7::{-1..8},g_3_8::{-1..8},g_3_9::{-1..8},g_4_0::{-1..8},g_4_1 = 2,g_4_2 = 1,g_4_3::{-1..8},g_4_4 = 1,g_4_5::{-1..8},g_4_6::{-1..8},g_4_7 = 3,g_4_8::{-1..8},g_4_9 = 2,g_5_0::{-1..8},g_5_1 = 3,g_5_2::{-1..8},g_5_3 = 2,g_5_4::{-1..8},g_5_5::{-1..8},g_5_6 = 2,g_5_7::{-1..8},g_5_8 = 1,g_5_9::{-1..8},g_6_0 = 2,g_6_1::{-1..8},g_6_2::{-1..8},g_6_3 = 3,g_6_4 = 2,g_6_5::{-1..8},g_6_6::{-1..8},g_6_7 = 2,g_6_8::{-1..8},g_6_9::{-1..8},g_7_0::{-1..8},g_7_1 = 3,g_7_2::{-1..8},g_7_3::{-1..8},g_7_4::{-1..8},g_7_5 = 3,g_7_6 = 2,g_7_7::{-1..8},g_7_8::{-1..8},g_7_9 = 3,g_8_0::{-1..8},g_8_1::{-1..8},g_8_2 = 3,g_8_3::{-1..8},g_8_4 = 3,g_8_5 = 3,g_8_6::{-1..8},g_8_7::{-1..8},g_8_8::{-1..8},g_8_9::{-1..8},g_9_0::{-1..8},g_9_1 = 2,g_9_2::{-1..8},g_9_3 = 2,g_9_4::{-1..8},g_9_5::{-1..8},g_9_6::{-1..8},g_9_7 = 2,g_9_8 = 2,g_9_9::{-1..8}]", 602 "[m_0_0=0,m_0_1=1,m_0_2=0,m_0_3=1,m_0_4=0,m_0_5=0,m_0_6=0,m_0_7=0,m_1_0=1,m_1_1=0,m_1_2=1,m_1_3=0,m_1_4=1,m_1_5=1,m_1_6=0,m_1_7=0,m_2_0=1,m_2_1=1,m_2_2=0,m_2_3=1,m_2_4=0,m_2_5=0,m_2_6=1,m_2_7=0,m_3_0=0,m_3_1=0,m_3_2=1,m_3_3=1,m_3_4=0,m_3_5=1,m_3_6=0,m_3_7=1,m_4_0=0,m_4_1=0,m_4_2=0,m_4_3=0,m_4_4=0,m_4_5=1,m_4_6=1,m_4_7=0,m_5_0=0,m_5_1=1,m_5_2=0,m_5_3=1,m_5_4=1,m_5_5=0,m_5_6=0,m_5_7=0,m_6_0=0,m_6_1=1,m_6_2=1,m_6_3=1,m_6_4=0,m_6_5=1,m_6_6=0,m_6_7=1,m_7_0=0,m_7_1=0,m_7_2=1,m_7_3=0,m_7_4=0,m_7_5=1,m_7_6=1,m_7_7=0,g_0_0 = 2,g_0_1::{-1..8},g_0_2::{-1..8},g_0_3::{-1..8},g_0_4 = 3,g_0_5::{-1..8},g_0_6 = 1,g_0_7::{-1..8},g_1_0::{-1..8},g_1_1 = 5,g_1_2::{-1..8},g_1_3 = 4,g_1_4::{-1..8},g_1_5::{-1..8},g_1_6::{-1..8},g_1_7 = 1,g_2_0::{-1..8},g_2_1::{-1..8},g_2_2 = 5,g_2_3::{-1..8},g_2_4::{-1..8},g_2_5 = 4,g_2_6::{-1..8},g_2_7::{-1..8},g_3_0 = 2,g_3_1::{-1..8},g_3_2::{-1..8},g_3_3::{-1..8},g_3_4 = 4,g_3_5::{-1..8},g_3_6 = 5,g_3_7::{-1..8},g_4_0::{-1..8},g_4_1 = 2,g_4_2::{-1..8},g_4_3 = 4,g_4_4::{-1..8},g_4_5::{-1..8},g_4_6::{-1..8},g_4_7 = 2,g_5_0::{-1..8},g_5_1::{-1..8},g_5_2 = 5,g_5_3::{-1..8},g_5_4::{-1..8},g_5_5 = 4,g_5_6::{-1..8},g_5_7::{-1..8},g_6_0 = 2,g_6_1::{-1..8},g_6_2::{-1..8},g_6_3::{-1..8},g_6_4 = 5,g_6_5::{-1..8},g_6_6 = 4,g_6_7::{-1..8},g_7_0::{-1..8},g_7_1 = 3,g_7_2::{-1..8},g_7_3 = 3,g_7_4::{-1..8},g_7_5::{-1..8},g_7_6::{-1..8},g_7_7 = 2]", 603 "[m_0_0=0,m_0_1=0,m_0_2=0,m_0_3=0,m_0_4=0,m_0_5=0,m_0_6=1,m_0_7=0,m_0_8=0,m_0_9=0,m_1_0=0,m_1_1=0,m_1_2=0,m_1_3=0,m_1_4=0,m_1_5=1,m_1_6=0,m_1_7=0,m_1_8=0,m_1_9=1,m_2_0=0,m_2_1=1,m_2_2=0,m_2_3=1,m_2_4=0,m_2_5=0,m_2_6=0,m_2_7=0,m_2_8=1,m_2_9=0,m_3_0=0,m_3_1=0,m_3_2=0,m_3_3=0,m_3_4=0,m_3_5=0,m_3_6=1,m_3_7=0,m_3_8=0,m_3_9=0,m_4_0=0,m_4_1=0,m_4_2=1,m_4_3=0,m_4_4=0,m_4_5=0,m_4_6=0,m_4_7=0,m_4_8=0,m_4_9=0,m_5_0=0,m_5_1=0,m_5_2=0,m_5_3=0,m_5_4=0,m_5_5=1,m_5_6=0,m_5_7=0,m_5_8=1,m_5_9=0,m_6_0=1,m_6_1=1,m_6_2=0,m_6_3=0,m_6_4=1,m_6_5=0,m_6_6=0,m_6_7=0,m_6_8=0,m_6_9=0,m_7_0=1,m_7_1=0,m_7_2=0,m_7_3=0,m_7_4=0,m_7_5=0,m_7_6=1,m_7_7=0,m_7_8=1,m_7_9=0,m_8_0=1,m_8_1=0,m_8_2=1,m_8_3=0,m_8_4=0,m_8_5=1,m_8_6=0,m_8_7=1,m_8_8=0,m_8_9=0,m_9_0=0,m_9_1=0,m_9_2=0,m_9_3=0,m_9_4=0,m_9_5=0,m_9_6=0,m_9_7=0,m_9_8=0,m_9_9=0,g_0_0 = 0,g_0_1::{-1..8},g_0_2 = 0,g_0_3::{-1..8},g_0_4 = 1,g_0_5::{-1..8},g_0_6::{-1..8},g_0_7 = 1,g_0_8 = 1,g_0_9::{-1..8},g_1_0 = 1,g_1_1::{-1..8},g_1_2 = 2,g_1_3::{-1..8},g_1_4 = 2,g_1_5::{-1..8},g_1_6 = 2,g_1_7 = 2,g_1_8::{-1..8},g_1_9::{-1..8},g_2_0::{-1..8},g_2_1::{-1..8},g_2_2::{-1..8},g_2_3::{-1..8},g_2_4::{-1..8},g_2_5::{-1..8},g_2_6 = 2,g_2_7::{-1..8},g_2_8::{-1..8},g_2_9 = 2,g_3_0::{-1..8},g_3_1 = 2,g_3_2 = 3,g_3_3::{-1..8},g_3_4 = 1,g_3_5 = 1,g_3_6::{-1..8},g_3_7::{-1..8},g_3_8::{-1..8},g_3_9::{-1..8},g_4_0 = 0,g_4_1::{-1..8},g_4_2::{-1..8},g_4_3::{-1..8},g_4_4::{-1..8},g_4_5::{-1..8},g_4_6::{-1..8},g_4_7 = 2,g_4_8::{-1..8},g_4_9 = 1,g_5_0::{-1..8},g_5_1::{-1..8},g_5_2::{-1..8},g_5_3 = 2,g_5_4 = 2,g_5_5::{-1..8},g_5_6 = 1,g_5_7::{-1..8},g_5_8::{-1..8},g_5_9::{-1..8},g_6_0::{-1..8},g_6_1::{-1..8},g_6_2::{-1..8},g_6_3::{-1..8},g_6_4::{-1..8},g_6_5 = 3,g_6_6::{-1..8},g_6_7 = 3,g_6_8 = 2,g_6_9::{-1..8},g_7_0::{-1..8},g_7_1 = 5,g_7_2::{-1..8},g_7_3 = 2,g_7_4::{-1..8},g_7_5::{-1..8},g_7_6::{-1..8},g_7_7 = 3,g_7_8::{-1..8},g_7_9 = 1,g_8_0::{-1..8},g_8_1 = 3,g_8_2::{-1..8},g_8_3 = 1,g_8_4::{-1..8},g_8_5::{-1..8},g_8_6 = 3,g_8_7::{-1..8},g_8_8::{-1..8},g_8_9::{-1..8},g_9_0::{-1..8},g_9_1 = 2,g_9_2::{-1..8},g_9_3::{-1..8},g_9_4::{-1..8},g_9_5 = 1,g_9_6 = 2,g_9_7::{-1..8},g_9_8::{-1..8},g_9_9 = 0]", 604 "[m_0_0=1,m_0_1=0,m_0_2=0,m_0_3=1,m_0_4=0,m_0_5=0,m_0_6=0,m_0_7=0,m_0_8=1,m_0_9=1,m_1_0=1,m_1_1=0,m_1_2=0,m_1_3=0,m_1_4=0,m_1_5=1,m_1_6=0,m_1_7=1,m_1_8=0,m_1_9=0,m_2_0=1,m_2_1=0,m_2_2=1,m_2_3=0,m_2_4=1,m_2_5=0,m_2_6=0,m_2_7=1,m_2_8=1,m_2_9=0,m_3_0=0,m_3_1=1,m_3_2=0,m_3_3=1,m_3_4=1,m_3_5=0,m_3_6=1,m_3_7=0,m_3_8=1,m_3_9=1,m_4_0=1,m_4_1=1,m_4_2=0,m_4_3=0,m_4_4=1,m_4_5=0,m_4_6=1,m_4_7=1,m_4_8=0,m_4_9=0,m_5_0=0,m_5_1=0,m_5_2=1,m_5_3=0,m_5_4=1,m_5_5=1,m_5_6=0,m_5_7=0,m_5_8=1,m_5_9=1,m_6_0=0,m_6_1=1,m_6_2=0,m_6_3=0,m_6_4=0,m_6_5=1,m_6_6=1,m_6_7=0,m_6_8=1,m_6_9=0,m_7_0=0,m_7_1=1,m_7_2=1,m_7_3=0,m_7_4=0,m_7_5=1,m_7_6=0,m_7_7=1,m_7_8=1,m_7_9=1,m_8_0=0,m_8_1=0,m_8_2=1,m_8_3=1,m_8_4=0,m_8_5=0,m_8_6=1,m_8_7=1,m_8_8=0,m_8_9=0,m_9_0=1,m_9_1=1,m_9_2=1,m_9_3=0,m_9_4=1,m_9_5=0,m_9_6=0,m_9_7=0,m_9_8=0,m_9_9=0,g_0_0::{-1..8},g_0_1 = 2,g_0_2 = 1,g_0_3::{-1..8},g_0_4 = 2,g_0_5::{-1..8},g_0_6 = 2,g_0_7::{-1..8},g_0_8::{-1..8},g_0_9::{-1..8},g_1_0::{-1..8},g_1_1 = 4,g_1_2::{-1..8},g_1_3::{-1..8},g_1_4 = 3,g_1_5::{-1..8},g_1_6::{-1..8},g_1_7::{-1..8},g_1_8 = 5,g_1_9 = 3,g_2_0::{-1..8},g_2_1::{-1..8},g_2_2::{-1..8},g_2_3 = 4,g_2_4::{-1..8},g_2_5 = 4,g_2_6 = 4,g_2_7::{-1..8},g_2_8::{-1..8},g_2_9 = 3,g_3_0 = 4,g_3_1::{-1..8},g_3_2 = 4,g_3_3::{-1..8},g_3_4::{-1..8},g_3_5 = 5,g_3_6::{-1..8},g_3_7 = 6,g_3_8::{-1..8},g_3_9::{-1..8},g_4_0::{-1..8},g_4_1::{-1..8},g_4_2 = 4,g_4_3 = 5,g_4_4::{-1..8},g_4_5::{-1..8},g_4_6::{-1..8},g_4_7::{-1..8},g_4_8 = 5,g_4_9 = 4,g_5_0 = 3,g_5_1 = 4,g_5_2::{-1..8},g_5_3::{-1..8},g_5_4::{-1..8},g_5_5::{-1..8},g_5_6 = 5,g_5_7 = 5,g_5_8::{-1..8},g_5_9::{-1..8},g_6_0::{-1..8},g_6_1::{-1..8},g_6_2 = 4,g_6_3::{-1..8},g_6_4 = 4,g_6_5::{-1..8},g_6_6::{-1..8},g_6_7 = 5,g_6_8::{-1..8},g_6_9 = 5,g_7_0 = 2,g_7_1::{-1..8},g_7_2::{-1..8},g_7_3 = 3,g_7_4 = 3,g_7_5::{-1..8},g_7_6 = 6,g_7_7::{-1..8},g_7_8::{-1..8},g_7_9::{-1..8},g_8_0 = 3,g_8_1 = 6,g_8_2::{-1..8},g_8_3::{-1..8},g_8_4::{-1..8},g_8_5 = 3,g_8_6::{-1..8},g_8_7::{-1..8},g_8_8 = 4,g_8_9::{-1..8},g_9_0::{-1..8},g_9_1::{-1..8},g_9_2::{-1..8},g_9_3 = 4,g_9_4::{-1..8},g_9_5 = 2,g_9_6::{-1..8},g_9_7 = 2,g_9_8 = 1,g_9_9::{-1..8}]", 605 "[m_0_0=1,m_0_1=0,m_0_2=0,m_0_3=0,m_0_4=0,m_0_5=0,m_0_6=0,m_0_7=1,m_1_0=0,m_1_1=1,m_1_2=1,m_1_3=0,m_1_4=0,m_1_5=0,m_1_6=1,m_1_7=0,m_2_0=0,m_2_1=1,m_2_2=0,m_2_3=0,m_2_4=0,m_2_5=1,m_2_6=1,m_2_7=0,m_3_0=1,m_3_1=0,m_3_2=1,m_3_3=0,m_3_4=0,m_3_5=0,m_3_6=1,m_3_7=1,m_4_0=1,m_4_1=1,m_4_2=0,m_4_3=1,m_4_4=1,m_4_5=1,m_4_6=0,m_4_7=1,m_5_0=0,m_5_1=1,m_5_2=1,m_5_3=1,m_5_4=0,m_5_5=0,m_5_6=1,m_5_7=0,m_6_0=0,m_6_1=0,m_6_2=1,m_6_3=0,m_6_4=0,m_6_5=1,m_6_6=1,m_6_7=1,m_7_0=1,m_7_1=0,m_7_2=0,m_7_3=1,m_7_4=1,m_7_5=0,m_7_6=0,m_7_7=1,g_0_0::{-1..8},g_0_1 = 3,g_0_2 = 2,g_0_3::{-1..8},g_0_4::{-1..8},g_0_5 = 1,g_0_6::{-1..8},g_0_7::{-1..8},g_1_0::{-1..8},g_1_1::{-1..8},g_1_2::{-1..8},g_1_3::{-1..8},g_1_4 = 1,g_1_5::{-1..8},g_1_6::{-1..8},g_1_7 = 3,g_2_0 = 3,g_2_1::{-1..8},g_2_2::{-1..8},g_2_3 = 2,g_2_4::{-1..8},g_2_5::{-1..8},g_2_6::{-1..8},g_2_7 = 4,g_3_0::{-1..8},g_3_1 = 5,g_3_2::{-1..8},g_3_3::{-1..8},g_3_4::{-1..8},g_3_5 = 5,g_3_6::{-1..8},g_3_7::{-1..8},g_4_0::{-1..8},g_4_1::{-1..8},g_4_2 = 6,g_4_3::{-1..8},g_4_4::{-1..8},g_4_5::{-1..8},g_4_6 = 5,g_4_7::{-1..8},g_5_0 = 3,g_5_1::{-1..8},g_5_2::{-1..8},g_5_3::{-1..8},g_5_4 = 5,g_5_5::{-1..8},g_5_6::{-1..8},g_5_7 = 4,g_6_0 = 2,g_6_1::{-1..8},g_6_2::{-1..8},g_6_3 = 5,g_6_4::{-1..8},g_6_5::{-1..8},g_6_6::{-1..8},g_6_7::{-1..8},g_7_0::{-1..8},g_7_1::{-1..8},g_7_2 = 2,g_7_3::{-1..8},g_7_4::{-1..8},g_7_5 = 3,g_7_6 = 4,g_7_7::{-1..8}]", 606 "[m_0_0=0,m_0_1=0,m_0_2=0,m_0_3=1,m_0_4=0,m_0_5=1,m_0_6=0,m_0_7=0,m_0_8=1,m_1_0=0,m_1_1=0,m_1_2=1,m_1_3=0,m_1_4=0,m_1_5=0,m_1_6=1,m_1_7=1,m_1_8=0,m_2_0=0,m_2_1=0,m_2_2=0,m_2_3=1,m_2_4=0,m_2_5=1,m_2_6=0,m_2_7=0,m_2_8=0,m_3_0=1,m_3_1=1,m_3_2=1,m_3_3=0,m_3_4=1,m_3_5=0,m_3_6=0,m_3_7=1,m_3_8=1,m_4_0=0,m_4_1=0,m_4_2=0,m_4_3=0,m_4_4=1,m_4_5=0,m_4_6=1,m_4_7=0,m_4_8=1,m_5_0=0,m_5_1=0,m_5_2=1,m_5_3=0,m_5_4=0,m_5_5=0,m_5_6=0,m_5_7=1,m_5_8=1,m_6_0=0,m_6_1=0,m_6_2=0,m_6_3=1,m_6_4=1,m_6_5=0,m_6_6=0,m_6_7=0,m_6_8=0,m_7_0=0,m_7_1=1,m_7_2=0,m_7_3=0,m_7_4=0,m_7_5=0,m_7_6=0,m_7_7=0,m_7_8=1,m_8_0=0,m_8_1=0,m_8_2=1,m_8_3=0,m_8_4=0,m_8_5=0,m_8_6=1,m_8_7=0,m_8_8=1,g_0_0::{-1..8},g_0_1 = 1,g_0_2::{-1..8},g_0_3::{-1..8},g_0_4::{-1..8},g_0_5::{-1..8},g_0_6::{-1..8},g_0_7 = 3,g_0_8::{-1..8},g_1_0::{-1..8},g_1_1::{-1..8},g_1_2::{-1..8},g_1_3 = 3,g_1_4 = 4,g_1_5 = 3,g_1_6::{-1..8},g_1_7::{-1..8},g_1_8::{-1..8},g_2_0 = 2,g_2_1 = 4,g_2_2 = 4,g_2_3::{-1..8},g_2_4::{-1..8},g_2_5::{-1..8},g_2_6 = 4,g_2_7 = 4,g_2_8 = 3,g_3_0::{-1..8},g_3_1::{-1..8},g_3_2::{-1..8},g_3_3 = 4,g_3_4::{-1..8},g_3_5 = 4,g_3_6::{-1..8},g_3_7::{-1..8},g_3_8::{-1..8},g_4_0::{-1..8},g_4_1 = 4,g_4_2::{-1..8},g_4_3 = 4,g_4_4::{-1..8},g_4_5 = 3,g_4_6::{-1..8},g_4_7 = 6,g_4_8::{-1..8},g_5_0::{-1..8},g_5_1::{-1..8},g_5_2::{-1..8},g_5_3 = 4,g_5_4::{-1..8},g_5_5 = 3,g_5_6::{-1..8},g_5_7::{-1..8},g_5_8::{-1..8},g_6_0 = 1,g_6_1 = 2,g_6_2 = 3,g_6_3::{-1..8},g_6_4::{-1..8},g_6_5::{-1..8},g_6_6 = 1,g_6_7 = 3,g_6_8 = 3,g_7_0::{-1..8},g_7_1::{-1..8},g_7_2::{-1..8},g_7_3 = 3,g_7_4 = 2,g_7_5 = 2,g_7_6::{-1..8},g_7_7::{-1..8},g_7_8::{-1..8},g_8_0::{-1..8},g_8_1 = 2,g_8_2::{-1..8},g_8_3::{-1..8},g_8_4::{-1..8},g_8_5::{-1..8},g_8_6::{-1..8},g_8_7 = 3,g_8_8::{-1..8}]", 607 "[m_0_0=0,m_0_1=1,m_0_2=1,m_0_3=0,m_0_4=1,m_0_5=0,m_0_6=1,m_1_0=0,m_1_1=0,m_1_2=0,m_1_3=0,m_1_4=0,m_1_5=0,m_1_6=1,m_2_0=0,m_2_1=0,m_2_2=0,m_2_3=1,m_2_4=1,m_2_5=0,m_2_6=1,m_3_0=0,m_3_1=0,m_3_2=1,m_3_3=0,m_3_4=0,m_3_5=0,m_3_6=0,m_4_0=0,m_4_1=0,m_4_2=0,m_4_3=1,m_4_4=1,m_4_5=0,m_4_6=1,m_5_0=0,m_5_1=0,m_5_2=0,m_5_3=0,m_5_4=0,m_5_5=0,m_5_6=1,m_6_0=0,m_6_1=1,m_6_2=0,m_6_3=0,m_6_4=0,m_6_5=1,m_6_6=0,g_0_0::{-1..8},g_0_1::{-1..8},g_0_2::{-1..8},g_0_3::{-1..8},g_0_4::{-1..8},g_0_5::{-1..8},g_0_6::{-1..8},g_1_0::{-1..8},g_1_1 = 2,g_1_2 = 3,g_1_3 = 4,g_1_4 = 3,g_1_5 = 5,g_1_6::{-1..8},g_2_0::{-1..8},g_2_1 = 1,g_2_2::{-1..8},g_2_3::{-1..8},g_2_4::{-1..8},g_2_5 = 3,g_2_6::{-1..8},g_3_0::{-1..8},g_3_1::{-1..8},g_3_2::{-1..8},g_3_3 = 5,g_3_4::{-1..8},g_3_5::{-1..8},g_3_6::{-1..8},g_4_0::{-1..8},g_4_1 = 1,g_4_2::{-1..8},g_4_3::{-1..8},g_4_4::{-1..8},g_4_5 = 3,g_4_6::{-1..8},g_5_0::{-1..8},g_5_1 = 1,g_5_2 = 2,g_5_3 = 2,g_5_4 = 3,g_5_5 = 4,g_5_6::{-1..8},g_6_0::{-1..8},g_6_1::{-1..8},g_6_2::{-1..8},g_6_3::{-1..8},g_6_4::{-1..8},g_6_5::{-1..8},g_6_6::{-1..8}]", 608 "[m_0_0=0,m_0_1=1,m_0_2=0,m_0_3=1,m_0_4=0,m_0_5=0,m_0_6=1,m_0_7=1,m_0_8=0,m_1_0=1,m_1_1=0,m_1_2=1,m_1_3=0,m_1_4=1,m_1_5=0,m_1_6=0,m_1_7=0,m_1_8=1,m_2_0=0,m_2_1=1,m_2_2=0,m_2_3=1,m_2_4=0,m_2_5=1,m_2_6=0,m_2_7=0,m_2_8=1,m_3_0=0,m_3_1=0,m_3_2=1,m_3_3=0,m_3_4=0,m_3_5=0,m_3_6=0,m_3_7=0,m_3_8=1,m_4_0=0,m_4_1=1,m_4_2=1,m_4_3=0,m_4_4=0,m_4_5=1,m_4_6=1,m_4_7=1,m_4_8=0,m_5_0=1,m_5_1=0,m_5_2=1,m_5_3=0,m_5_4=1,m_5_5=0,m_5_6=0,m_5_7=0,m_5_8=0,m_6_0=0,m_6_1=1,m_6_2=0,m_6_3=0,m_6_4=1,m_6_5=1,m_6_6=0,m_6_7=1,m_6_8=1,m_7_0=1,m_7_1=0,m_7_2=1,m_7_3=0,m_7_4=1,m_7_5=0,m_7_6=1,m_7_7=0,m_7_8=1,m_8_0=0,m_8_1=1,m_8_2=0,m_8_3=0,m_8_4=0,m_8_5=0,m_8_6=1,m_8_7=1,m_8_8=0,g_0_0 = 2,g_0_1::{-1..8},g_0_2::{-1..8},g_0_3::{-1..8},g_0_4 = 2,g_0_5::{-1..8},g_0_6::{-1..8},g_0_7::{-1..8},g_0_8 = 2,g_1_0::{-1..8},g_1_1 = 4,g_1_2::{-1..8},g_1_3 = 4,g_1_4::{-1..8},g_1_5 = 3,g_1_6::{-1..8},g_1_7 = 4,g_1_8::{-1..8},g_2_0::{-1..8},g_2_1::{-1..8},g_2_2 = 4,g_2_3::{-1..8},g_2_4::{-1..8},g_2_5::{-1..8},g_2_6 = 1,g_2_7::{-1..8},g_2_8::{-1..8},g_3_0::{-1..8},g_3_1 = 4,g_3_2::{-1..8},g_3_3 = 3,g_3_4::{-1..8},g_3_5 = 3,g_3_6::{-1..8},g_3_7 = 4,g_3_8::{-1..8},g_4_0 = 2,g_4_1::{-1..8},g_4_2::{-1..8},g_4_3::{-1..8},g_4_4::{-1..8},g_4_5::{-1..8},g_4_6::{-1..8},g_4_7::{-1..8},g_4_8 = 2,g_5_0::{-1..8},g_5_1 = 5,g_5_2::{-1..8},g_5_3 = 4,g_5_4::{-1..8},g_5_5 = 5,g_5_6::{-1..8},g_5_7 = 4,g_5_8::{-1..8},g_6_0::{-1..8},g_6_1::{-1..8},g_6_2 = 3,g_6_3::{-1..8},g_6_4::{-1..8},g_6_5::{-1..8},g_6_6 = 3,g_6_7::{-1..8},g_6_8::{-1..8},g_7_0::{-1..8},g_7_1 = 4,g_7_2::{-1..8},g_7_3 = 3,g_7_4::{-1..8},g_7_5 = 5,g_7_6::{-1..8},g_7_7 = 6,g_7_8::{-1..8},g_8_0 = 2,g_8_1::{-1..8},g_8_2::{-1..8},g_8_3::{-1..8},g_8_4 = 1,g_8_5::{-1..8},g_8_6::{-1..8},g_8_7::{-1..8},g_8_8 = 2]"}; 609 610 String[][] problems = minesweeper.problems(); 611 612 for (int i = 0; i < problems.length; i++) { 613 614 minesweeper.problem = MineSweeper.readFromArray(problems[i]); 615 616 minesweeper.model(); 617 618 minesweeper.searchSpecific(true); 619 620 minesweeper.getSearch().assignSolution(); 621 622 assertEquals("Sol " + i, results[i], minesweeper.store.toStringOrderedVars()); 623 } 624 625 } 626 testNewspaper()627 @Test public void testNewspaper() { 628 629 Newspaper example = new Newspaper(); 630 631 example.model(); 632 633 example.searchSmallestMin(); 634 635 example.getSearch().assignSolution(); 636 637 assertEquals( 638 "[algy[0] = 110,algy[1] = 45,algy[2] = 140,algy[3] = 165,bertie[0] = 35,bertie[1] = 113,bertie[2] = 110,bertie[3] = 170,charlie[0] = 20,charlie[1] = 35,charlie[2] = 15,charlie[3] = 45,digby[0] = 166,digby[1] = 165,digby[2] = 167,digby[3] = 75,durationAlgyExpress = 2,durationAlgyFT = 60,durationAlgyGuardian = 30,durationAlgySun = 5,durationBertieExpress = 3,durationBertieFT = 25,durationBertieGuardian = 75,durationBertieSun = 10,durationCharlieExpress = 5,durationCharlieFT = 10,durationCharlieGuardian = 15,durationCharlieSun = 30,durationDigbyExpress = 1,durationDigbyFT = 1,durationDigbyGuardian = 1,durationDigbySun = 90,makespan = 180,one = 1]", 639 example.store.toStringOrderedVars()); 640 } 641 testNonTransitiveDice()642 @Test public void testNonTransitiveDice() { 643 644 boolean firstSolutionFound = false; 645 646 int noDices = 4; 647 int noSides = 7; 648 int currentBest; 649 650 if (noSides * noSides % 2 == 0) 651 currentBest = noSides * noSides / 2 - 1; 652 else 653 currentBest = noSides * noSides / 2; 654 655 String solution = ""; 656 657 while (true) { 658 659 NonTransitiveDice example = new NonTransitiveDice(); 660 661 example.noDices = noDices; 662 example.noSides = noSides; 663 example.currentBest = currentBest; 664 665 example.model(); 666 667 boolean result = example.shavingSearch(example.shavingConstraints, false); 668 669 System.out.print(noDices + "\t"); 670 System.out.print(noSides + "\t"); 671 System.out.print(currentBest + "\t"); 672 System.out.print(result + "\t"); 673 System.out.print(example.search.getNodes() + "\t"); 674 System.out.print(example.search.getDecisions() + "\t"); 675 System.out.print(example.search.getWrongDecisions() + "\t"); 676 System.out.print(example.search.getBacktracks() + "\t"); 677 System.out.println(example.search.getMaximumDepth() + "\t"); 678 679 currentBest--; 680 681 if (result) { 682 firstSolutionFound = true; 683 } 684 685 if (!result && firstSolutionFound) 686 break; 687 688 // Store previous solution and not a proof of optimality ( no solution ). 689 example.getSearch().assignSolution(); 690 solution = example.store.toStringOrderedVars(); 691 } 692 693 assertEquals( 694 "[win_D1->2F00=0,win_D1->2F01=0,win_D1->2F02=0,win_D1->2F03=0,win_D1->2F04=0,win_D1->2F05=0,win_D1->2F06=0,win_D1->2F10=1,win_D1->2F11=1,win_D1->2F12=1,win_D1->2F13=1,win_D1->2F14=0,win_D1->2F15=0,win_D1->2F16=0,win_D1->2F20=1,win_D1->2F21=1,win_D1->2F22=1,win_D1->2F23=1,win_D1->2F24=0,win_D1->2F25=0,win_D1->2F26=0,win_D1->2F30=1,win_D1->2F31=1,win_D1->2F32=1,win_D1->2F33=1,win_D1->2F34=0,win_D1->2F35=0,win_D1->2F36=0,win_D1->2F40=1,win_D1->2F41=1,win_D1->2F42=1,win_D1->2F43=1,win_D1->2F44=1,win_D1->2F45=1,win_D1->2F46=0,win_D1->2F50=1,win_D1->2F51=1,win_D1->2F52=1,win_D1->2F53=1,win_D1->2F54=1,win_D1->2F55=1,win_D1->2F56=0,win_D1->2F60=1,win_D1->2F61=1,win_D1->2F62=1,win_D1->2F63=1,win_D1->2F64=1,win_D1->2F65=1,win_D1->2F66=0,win_D2->3F00=1,win_D2->3F01=1,win_D2->3F02=1,win_D2->3F03=0,win_D2->3F04=0,win_D2->3F05=0,win_D2->3F06=0,win_D2->3F10=1,win_D2->3F11=1,win_D2->3F12=1,win_D2->3F13=1,win_D2->3F14=0,win_D2->3F15=0,win_D2->3F16=0,win_D2->3F20=1,win_D2->3F21=1,win_D2->3F22=1,win_D2->3F23=1,win_D2->3F24=0,win_D2->3F25=0,win_D2->3F26=0,win_D2->3F30=1,win_D2->3F31=1,win_D2->3F32=1,win_D2->3F33=1,win_D2->3F34=0,win_D2->3F35=0,win_D2->3F36=0,win_D2->3F40=1,win_D2->3F41=1,win_D2->3F42=1,win_D2->3F43=1,win_D2->3F44=0,win_D2->3F45=0,win_D2->3F46=0,win_D2->3F50=1,win_D2->3F51=1,win_D2->3F52=1,win_D2->3F53=1,win_D2->3F54=0,win_D2->3F55=0,win_D2->3F56=0,win_D2->3F60=1,win_D2->3F61=1,win_D2->3F62=1,win_D2->3F63=1,win_D2->3F64=1,win_D2->3F65=1,win_D2->3F66=1,win_D3->0F00=1,win_D3->0F01=1,win_D3->0F02=0,win_D3->0F03=0,win_D3->0F04=0,win_D3->0F05=0,win_D3->0F06=0,win_D3->0F10=1,win_D3->0F11=1,win_D3->0F12=1,win_D3->0F13=0,win_D3->0F14=0,win_D3->0F15=0,win_D3->0F16=0,win_D3->0F20=1,win_D3->0F21=1,win_D3->0F22=1,win_D3->0F23=0,win_D3->0F24=0,win_D3->0F25=0,win_D3->0F26=0,win_D3->0F30=1,win_D3->0F31=1,win_D3->0F32=1,win_D3->0F33=0,win_D3->0F34=0,win_D3->0F35=0,win_D3->0F36=0,win_D3->0F40=1,win_D3->0F41=1,win_D3->0F42=1,win_D3->0F43=1,win_D3->0F44=1,win_D3->0F45=0,win_D3->0F46=0,win_D3->0F50=1,win_D3->0F51=1,win_D3->0F52=1,win_D3->0F53=1,win_D3->0F54=1,win_D3->0F55=1,win_D3->0F56=1,win_D3->0F60=1,win_D3->0F61=1,win_D3->0F62=1,win_D3->0F63=1,win_D3->0F64=1,win_D3->0F65=1,win_D3->0F66=1,win_D4->1F00=1,win_D4->1F01=0,win_D4->1F02=0,win_D4->1F03=0,win_D4->1F04=0,win_D4->1F05=0,win_D4->1F06=0,win_D4->1F10=1,win_D4->1F11=0,win_D4->1F12=0,win_D4->1F13=0,win_D4->1F14=0,win_D4->1F15=0,win_D4->1F16=0,win_D4->1F20=1,win_D4->1F21=0,win_D4->1F22=0,win_D4->1F23=0,win_D4->1F24=0,win_D4->1F25=0,win_D4->1F26=0,win_D4->1F30=1,win_D4->1F31=1,win_D4->1F32=1,win_D4->1F33=1,win_D4->1F34=1,win_D4->1F35=1,win_D4->1F36=0,win_D4->1F40=1,win_D4->1F41=1,win_D4->1F42=1,win_D4->1F43=1,win_D4->1F44=1,win_D4->1F45=1,win_D4->1F46=1,win_D4->1F50=1,win_D4->1F51=1,win_D4->1F52=1,win_D4->1F53=1,win_D4->1F54=1,win_D4->1F55=1,win_D4->1F56=1,win_D4->1F60=1,win_D4->1F61=1,win_D4->1F62=1,win_D4->1F63=1,win_D4->1F64=1,win_D4->1F65=1,win_D4->1F66=1,MinDominance = 30,d1f1 = 1,d1f2 = 13,d1f3 = 14,d1f4 = 15,d1f5 = 18,d1f6 = 19,d1f7 = 21,d2f1 = 8,d2f2 = 10,d2f3 = 11,d2f4 = 12,d2f5 = 16,d2f6 = 17,d2f7 = 28,d3f1 = 4,d3f2 = 6,d3f3 = 7,d3f4 = 9,d3f5 = 23,d3f6 = 26,d3f7 = 27,d4f1 = 2,d4f2 = 3,d4f3 = 5,d4f4 = 20,d4f5 = 22,d4f6 = 24,d4f7 = 25,diff = 19,maxNo = 28,noWins-d1->d2 = 30,noWins-d2->d3 = 30,noWins-d3->d0 = 30,noWins-d4->d1 = 30]", 695 solution); 696 697 } 698 699 testParcel()700 @Test public void testParcel() { 701 702 Parcel example = new Parcel(); 703 704 example.model(); 705 706 if (example.searchMaxRegretOptimal()) 707 System.out.println("Solution(s) found"); 708 709 example.getSearch().assignSolution(); 710 711 assertEquals( 712 "[Cost = 355,cities[0] = 8,cities[1] = 3,cities[2] = 4,cities[3] = 6,cities[4] = 10,cities[5] = 7,cities[6] = 1,cities[7] = 9,cities[8] = 5,cities[9] = 2,costs[0] = 56,costs[1] = 26,costs[2] = 71,costs[3] = 19,costs[4] = 13,costs[5] = 65,costs[6] = 25,costs[7] = 23,costs[8] = 8,costs[9] = 49,nextLoad[0] = 2,nextLoad[1] = 1,nextLoad[2] = 4,nextLoad[3] = -3,nextLoad[4] = 1,nextLoad[5] = 5,nextLoad[6] = -6,nextLoad[7] = 3,nextLoad[8] = -5,nextLoad[9] = 0,nextTown[0] = 9,nextTown[1] = 5,nextTown[2] = 10,nextTown[3] = 2,nextTown[4] = 3,nextTown[5] = 4,nextTown[6] = 6,nextTown[7] = 7,nextTown[8] = 1,nextTown[9] = 8,partialLoad[0-0] = 2,partialLoad[0-1] = 3,partialLoad[0-2] = 7,partialLoad[0-3] = 4,partialLoad[0-4] = 5,partialLoad[0-5] = 10,partialLoad[0-6] = 4,partialLoad[0-7] = 7,partialLoad[0-8] = 2,partialLoad[0-9] = 2,MutableVar[0] (0)[8, 7],MutableVar[1] (0)[3, 10],MutableVar[2] (0)[4, 2],MutableVar[3] (0)[6, 3],MutableVar[4] (0)[10, 9],MutableVar[5] (0)[7, 4],MutableVar[6] (0)[1, 6],MutableVar[7] (0)[9, 1],MutableVar[8] (0)[5, 8],MutableVar[9] (0)[2, 5]]", 713 example.store.toStringOrderedVars()); 714 } 715 testPerfectSquare()716 @Test public void testPerfectSquare() { 717 718 PerfectSquare example = new PerfectSquare(); 719 720 int[] problemNumbers = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, example.squares().length - 1}; 721 String[] solutions = 722 {"[s0 = 2,s1 = 3,s2 = 4,s3 = 5,s4 = 6,s5 = 7,s6 = 8,x0 = 7,x1 = 8,x2 = 5,x3 = 0,x4 = 7,x5 = 0,x6 = 0,y0 = 12,y1 = 0,y2 = 8,y3 = 8,y4 = 14,y5 = 13,y6 = 0]", 723 "[s0 = 1,s1 = 2,s10 = 14,s11 = 15,s12 = 16,s13 = 19,s14 = 21,s15 = 28,s16 = 29,s17 = 31,s18 = 32,s19 = 37,s2 = 3,s20 = 38,s21 = 41,s22 = 44,s3 = 4,s4 = 5,s5 = 7,s6 = 8,s7 = 10,s8 = 12,s9 = 13,x0 = 43,x1 = 43,x10 = 45,x11 = 44,x12 = 28,x13 = 59,x14 = 44,x15 = 0,x16 = 44,x17 = 38,x18 = 78,x19 = 73,x2 = 40,x20 = 0,x21 = 69,x22 = 0,x3 = 40,x4 = 40,x5 = 38,x6 = 65,x7 = 59,x8 = 28,x9 = 65,y0 = 64,y1 = 65,y10 = 65,y11 = 50,y12 = 44,y13 = 50,y14 = 29,y15 = 44,y16 = 0,y17 = 79,y18 = 37,y19 = 0,y2 = 64,y20 = 72,y21 = 69,y22 = 0,y3 = 60,y4 = 67,y5 = 72,y6 = 29,y7 = 69,y8 = 60,y9 = 37]", 724 "[s0 = 2,s1 = 3,s10 = 28,s11 = 29,s12 = 32,s13 = 33,s14 = 49,s15 = 55,s16 = 57,s17 = 60,s18 = 63,s19 = 66,s2 = 9,s20 = 79,s21 = 123,s22 = 134,s3 = 11,s4 = 14,s5 = 15,s6 = 17,s7 = 20,s8 = 22,s9 = 24,x0 = 176,x1 = 191,x10 = 134,x11 = 162,x12 = 176,x13 = 123,x14 = 208,x15 = 123,x16 = 134,x17 = 134,x18 = 194,x19 = 191,x2 = 147,x20 = 178,x21 = 0,x22 = 0,x3 = 123,x4 = 162,x5 = 147,x6 = 191,x7 = 156,x8 = 156,x9 = 123,y0 = 77,y1 = 194,y10 = 112,y11 = 111,y12 = 79,y13 = 55,y14 = 79,y15 = 0,y16 = 140,y17 = 197,y18 = 194,y19 = 128,y2 = 88,y20 = 0,y21 = 0,y22 = 123,y3 = 112,y4 = 97,y5 = 97,y6 = 111,y7 = 77,y8 = 55,y9 = 88]", 725 "[s0 = 3,s1 = 5,s10 = 28,s11 = 32,s12 = 34,s13 = 36,s14 = 40,s15 = 45,s16 = 46,s17 = 48,s18 = 56,s19 = 62,s2 = 6,s20 = 63,s21 = 66,s22 = 111,s23 = 136,s3 = 9,s4 = 12,s5 = 14,s6 = 19,s7 = 23,s8 = 24,s9 = 25,x0 = 181,x1 = 172,x10 = 157,x11 = 136,x12 = 151,x13 = 136,x14 = 111,x15 = 136,x16 = 111,x17 = 136,x18 = 191,x19 = 185,x2 = 151,x20 = 184,x21 = 181,x22 = 0,x23 = 0,x3 = 168,x4 = 172,x5 = 177,x6 = 172,x7 = 168,x8 = 157,x9 = 111,y0 = 128,y1 = 210,y10 = 34,y11 = 215,y12 = 0,y13 = 179,y14 = 0,y15 = 86,y16 = 40,y17 = 131,y18 = 191,y19 = 0,y2 = 34,y20 = 128,y21 = 62,y22 = 0,y23 = 111,y3 = 215,y4 = 179,y5 = 210,y6 = 191,y7 = 224,y8 = 62,y9 = 86]", 726 "[s0 = 3,s1 = 9,s10 = 36,s11 = 37,s12 = 48,s13 = 52,s14 = 54,s15 = 55,s16 = 57,s17 = 65,s18 = 66,s19 = 78,s2 = 10,s20 = 79,s21 = 93,s22 = 144,s23 = 172,s3 = 12,s4 = 13,s5 = 14,s6 = 15,s7 = 23,s8 = 24,s9 = 33,x0 = 258,x1 = 253,x10 = 209,x11 = 172,x12 = 268,x13 = 209,x14 = 262,x15 = 261,x16 = 172,x17 = 144,x18 = 250,x19 = 172,x2 = 258,x20 = 144,x21 = 223,x22 = 0,x23 = 0,x3 = 250,x4 = 245,x5 = 209,x6 = 253,x7 = 245,x8 = 229,x9 = 229,y0 = 145,y1 = 196,y10 = 145,y11 = 144,y12 = 148,y13 = 93,y14 = 196,y15 = 93,y16 = 181,y17 = 79,y18 = 250,y19 = 238,y2 = 148,y20 = 0,y21 = 0,y22 = 0,y23 = 144,y3 = 238,y4 = 145,y5 = 79,y6 = 181,y7 = 158,y8 = 181,y9 = 205]", 727 "[s0 = 3,s1 = 5,s10 = 24,s11 = 25,s12 = 26,s13 = 28,s14 = 31,s15 = 35,s16 = 36,s17 = 47,s18 = 49,s19 = 56,s2 = 6,s20 = 58,s21 = 74,s22 = 76,s23 = 81,s24 = 90,s3 = 7,s4 = 13,s5 = 16,s6 = 17,s7 = 20,s8 = 21,s9 = 23,x0 = 90,x1 = 116,x10 = 49,x11 = 49,x12 = 90,x13 = 109,x14 = 90,x15 = 74,x16 = 121,x17 = 90,x18 = 0,x19 = 157,x2 = 74,x20 = 74,x21 = 0,x22 = 137,x23 = 132,x24 = 0,x3 = 73,x4 = 80,x5 = 93,x6 = 73,x7 = 137,x8 = 116,x9 = 109,y0 = 104,y1 = 31,y10 = 90,y11 = 114,y12 = 31,y13 = 104,y14 = 0,y15 = 120,y16 = 0,y17 = 57,y18 = 90,y19 = 0,y2 = 114,y20 = 155,y21 = 139,y22 = 56,y23 = 132,y24 = 0,y3 = 107,y4 = 107,y5 = 104,y6 = 90,y7 = 36,y8 = 36,y9 = 132]", 728 "[s0 = 3,s1 = 8,s10 = 26,s11 = 29,s12 = 34,s13 = 38,s14 = 40,s15 = 42,s16 = 43,s17 = 47,s18 = 54,s19 = 59,s2 = 12,s20 = 64,s21 = 70,s22 = 71,s23 = 130,s24 = 134,s3 = 13,s4 = 16,s5 = 18,s6 = 20,s7 = 21,s8 = 22,s9 = 24,x0 = 177,x1 = 209,x10 = 154,x11 = 180,x12 = 230,x13 = 172,x14 = 177,x15 = 130,x16 = 134,x17 = 217,x18 = 210,x19 = 205,x2 = 205,x20 = 130,x21 = 194,x22 = 134,x23 = 0,x24 = 0,x3 = 217,x4 = 194,x5 = 154,x6 = 134,x7 = 209,x8 = 172,x9 = 130,y0 = 150,y1 = 145,y10 = 124,y11 = 124,y12 = 124,y13 = 86,y14 = 153,y15 = 64,y16 = 150,y17 = 158,y18 = 70,y19 = 205,y2 = 193,y20 = 0,y21 = 0,y22 = 193,y23 = 0,y24 = 130,y3 = 145,y4 = 70,y5 = 106,y6 = 130,y7 = 124,y8 = 64,y9 = 106]", 729 "[s0 = 1,s1 = 4,s10 = 28,s11 = 30,s12 = 32,s13 = 33,s14 = 35,s15 = 37,s16 = 53,s17 = 54,s18 = 64,s19 = 68,s2 = 5,s20 = 74,s21 = 79,s22 = 80,s23 = 133,s24 = 153,s3 = 7,s4 = 10,s5 = 12,s6 = 15,s7 = 16,s8 = 20,s9 = 23,x0 = 186,x1 = 218,x10 = 190,x11 = 153,x12 = 186,x13 = 153,x14 = 187,x15 = 153,x16 = 153,x17 = 133,x18 = 222,x19 = 218,x2 = 207,x20 = 212,x21 = 133,x22 = 206,x23 = 0,x24 = 0,x3 = 183,x4 = 212,x5 = 206,x6 = 207,x7 = 190,x8 = 187,x9 = 183,y0 = 133,y1 = 134,y10 = 166,y11 = 203,y12 = 134,y13 = 133,y14 = 99,y15 = 166,y16 = 233,y17 = 79,y18 = 74,y19 = 138,y2 = 79,y20 = 0,y21 = 0,y22 = 206,y23 = 0,y24 = 133,y3 = 203,y4 = 74,y5 = 194,y6 = 84,y7 = 194,y8 = 79,y9 = 210]", 730 "[s0 = 1,s1 = 6,s10 = 38,s11 = 44,s12 = 51,s13 = 53,s14 = 64,s15 = 69,s16 = 70,s17 = 73,s18 = 74,s19 = 75,s2 = 7,s20 = 85,s21 = 87,s22 = 101,s23 = 116,s24 = 128,s3 = 11,s4 = 16,s5 = 22,s6 = 26,s7 = 29,s8 = 32,s9 = 36,x0 = 239,x1 = 102,x10 = 70,x11 = 108,x12 = 116,x13 = 197,x14 = 250,x15 = 128,x16 = 0,x17 = 167,x18 = 240,x19 = 239,x2 = 145,x20 = 128,x21 = 152,x22 = 213,x23 = 0,x24 = 0,x3 = 239,x4 = 197,x5 = 145,x6 = 102,x7 = 116,x8 = 70,x9 = 116,y0 = 240,y1 = 154,y10 = 160,y11 = 154,y12 = 263,y13 = 101,y14 = 101,y15 = 85,y16 = 128,y17 = 241,y18 = 240,y19 = 165,y2 = 234,y20 = 0,y21 = 154,y22 = 0,y23 = 198,y24 = 0,y3 = 154,y4 = 85,y5 = 241,y6 = 128,y7 = 234,y8 = 128,y9 = 198]", 731 "[s0 = 3,s1 = 8,s10 = 29,s11 = 30,s12 = 31,s13 = 33,s14 = 35,s15 = 49,s16 = 51,s17 = 67,s18 = 72,s19 = 73,s2 = 9,s20 = 83,s21 = 88,s22 = 95,s23 = 155,s24 = 168,s3 = 11,s4 = 17,s5 = 18,s6 = 22,s7 = 25,s8 = 26,s9 = 27,x0 = 262,x1 = 298,x10 = 206,x11 = 235,x12 = 155,x13 = 265,x14 = 262,x15 = 186,x16 = 155,x17 = 168,x18 = 251,x19 = 155,x2 = 297,x20 = 168,x21 = 235,x22 = 228,x23 = 0,x24 = 0,x3 = 251,x4 = 306,x5 = 168,x6 = 206,x7 = 298,x8 = 297,x9 = 235,y0 = 213,y1 = 208,y10 = 95,y11 = 183,y12 = 124,y13 = 183,y14 = 216,y15 = 124,y16 = 73,y17 = 173,y18 = 251,y19 = 0,y2 = 216,y20 = 240,y21 = 95,y22 = 0,y23 = 0,y24 = 155,y3 = 240,y4 = 208,y5 = 155,y6 = 73,y7 = 183,y8 = 225,y9 = 213]", 732 "[s0 = 1,s1 = 4,s10 = 44,s11 = 46,s12 = 50,s13 = 51,s14 = 52,s15 = 53,s16 = 61,s17 = 64,s18 = 66,s19 = 79,s2 = 5,s20 = 84,s21 = 85,s22 = 92,s23 = 169,s24 = 171,s3 = 6,s4 = 11,s5 = 13,s6 = 16,s7 = 17,s8 = 22,s9 = 24,x0 = 288,x1 = 235,x10 = 235,x11 = 193,x12 = 239,x13 = 289,x14 = 288,x15 = 235,x16 = 279,x17 = 171,x18 = 169,x19 = 169,x2 = 251,x20 = 256,x21 = 171,x22 = 248,x23 = 0,x24 = 0,x3 = 256,x4 = 251,x5 = 235,x6 = 235,x7 = 262,x8 = 171,x9 = 169,y0 = 144,y1 = 191,y10 = 195,y11 = 145,y12 = 145,y13 = 144,y14 = 92,y15 = 92,y16 = 195,y17 = 191,y18 = 79,y19 = 0,y2 = 250,y20 = 256,y21 = 255,y22 = 0,y23 = 0,y24 = 169,y3 = 250,y4 = 239,y5 = 79,y6 = 239,y7 = 239,y8 = 169,y9 = 145]", 733 "[s0 = 5,s1 = 7,s10 = 73,s11 = 77,s12 = 83,s13 = 84,s14 = 102,s15 = 106,s16 = 111,s17 = 161,s18 = 175,s19 = 196,s2 = 17,s20 = 203,s21 = 210,s22 = 238,s23 = 248,s24 = 262,s3 = 18,s4 = 23,s5 = 31,s6 = 36,s7 = 38,s8 = 41,s9 = 64,x0 = 276,x1 = 451,x10 = 340,x11 = 161,x12 = 262,x13 = 161,x14 = 238,x15 = 345,x16 = 340,x17 = 0,x18 = 238,x19 = 262,x2 = 245,x20 = 458,x21 = 451,x22 = 0,x23 = 413,x24 = 0,x3 = 322,x4 = 322,x5 = 245,x6 = 245,x7 = 238,x8 = 281,x9 = 276,y0 = 315,y1 = 196,y10 = 413,y11 = 346,y12 = 196,y13 = 262,y14 = 384,y15 = 196,y16 = 302,y17 = 262,y18 = 486,y19 = 0,y2 = 262,y20 = 0,y21 = 203,y22 = 423,y23 = 413,y24 = 0,y3 = 302,y4 = 279,y5 = 315,y6 = 279,y7 = 346,y8 = 279,y9 = 320]"}; 734 735 for (int no = 0; no < problemNumbers.length; no++) { 736 737 example.model(problemNumbers[no]); 738 example.search(); 739 740 assertEquals("Solution for problem no " + no + " is different ", solutions[no], example.store.toStringOrderedVars()); 741 742 } 743 } 744 testPigeonHole()745 @Test public void testPigeonHole() { 746 747 PigeonHole example = new PigeonHole(); 748 example.model(); 749 750 assertEquals(false, example.search()); 751 752 example = new PigeonHole(); 753 example.modelBasic(); 754 755 assertEquals(false, example.search()); 756 757 } 758 testProAndCon()759 @Test public void testProAndCon() { 760 761 ProAndCon example = new ProAndCon(); 762 763 example.model(); 764 765 if (example.search()) 766 System.out.println("Solution(s) found"); 767 768 example.getSearch().assignSolution(); 769 770 assertEquals( 771 "[2 = 2,25 = 25,Mr._Akerman_Group[1] = 1,Mr._Akerman_Group[2] = 1,Mr._Akerman_Group[3] = 1,Mr._Akerman_Group[4] = 1,Mr._Akerman_Group[5] = 0,Mr._Chatham_Group[1] = 1,Mr._Chatham_Group[2] = 0,Mr._Chatham_Group[3] = 1,Mr._Chatham_Group[4] = 0,Mr._Chatham_Group[5] = 0,Mr._Etting_Group[1] = 1,Mr._Etting_Group[2] = 1,Mr._Etting_Group[3] = 1,Mr._Etting_Group[4] = 0,Mr._Etting_Group[5] = 0,Ms._Baird_Group[1] = 1,Ms._Baird_Group[2] = 0,Ms._Baird_Group[3] = 1,Ms._Baird_Group[4] = 1,Ms._Baird_Group[5] = 0,Ms._Duval_Group[1] = 1,Ms._Duval_Group[2] = 1,Ms._Duval_Group[3] = 0,Ms._Duval_Group[4] = 0,Ms._Duval_Group[5] = 0,Sum4Group[1] = 5,Sum4Group[2] = 3,Sum4Group[3] = 4,Sum4Group[4] = 2,Sum4Group[5] = 0,agreeOnVote0 = 1,agreeOnVote1 = 0,agreeOnVote2 = 0,agreeOnVote3 = 0,agreeOnVote4 = 1,noAgreeBairdAndDuval = 2,noNoVotes = 11,noYesVotes = 14,sumChatham = 2,weightedVotes4Mr._Akerman = 15,weightedVotes4Mr._Chatham = 5,weightedVotes4Mr._Etting = 7,weightedVotes4Ms._Baird = 13,weightedVotes4Ms._Duval = 3]", 772 example.store.toStringOrderedVars()); 773 } 774 775 testQueens()776 @Test public void testQueens() { 777 778 Queens example = new Queens(); 779 example.numberQ = 7; 780 example.model(); 781 782 example.searchAllAtOnce(); 783 784 assertEquals(40, example.search.getSolutionListener().solutionsNo()); 785 786 example = new Queens(); 787 example.numberQ = 7; 788 example.modelChanneling(); 789 790 example.searchAllAtOnce(); 791 792 assertEquals(40, example.search.getSolutionListener().solutionsNo()); 793 794 } 795 testSendMoreMoney()796 @Test public void testSendMoreMoney() { 797 798 SendMoreMoney exampleBasic = new SendMoreMoney(); 799 800 exampleBasic.modelBasic(); 801 802 if (exampleBasic.search()) 803 System.out.println("Solution found."); 804 805 exampleBasic.getSearch().assignSolution(); 806 807 assertEquals( 808 "[D = 7,E = 5,M = 1,MONEY = 10652,MORE = 1085,N = 6,O = 0,R = 8,S = 9,SEND = 9567,Y = 2,v(DinSEND) = 7,v(EinMONEY) = 50,v(EinMORE) = 5,v(EinSEND) = 500,v(MONEinMONEY) = 10650,v(MOinMONEY) = 10000,v(MOinMORE) = 1000,v(MinMONEY) = 10000,v(MinMORE) = 1000,v(NDinSEND) = 67,v(NEinMONEY) = 650,v(NinMONEY) = 600,v(NinSEND) = 60,v(OinMONEY) = 0,v(OinMORE) = 0,v(REinMORE) = 85,v(RinMORE) = 80,v(SEinSEND) = 9500,v(SinSEND) = 9000,v(YinMONEY) = 2]", 809 exampleBasic.store.toStringOrderedVars()); 810 811 SendMoreMoney exampleGlobal = new SendMoreMoney(); 812 813 exampleGlobal.model(); 814 815 if (exampleGlobal.search()) 816 System.out.println("Solution found."); 817 818 exampleGlobal.getSearch().assignSolution(); 819 820 assertEquals("[D = 7,E = 5,M = 1,N = 6,O = 0,R = 8,S = 9,Y = 2,v(MONEY) = 10652,v(MORE) = 1085,v(SEND) = 9567]", 821 exampleGlobal.store.toStringOrderedVars()); 822 823 } 824 testSiblingUproar()825 @Test public void testSiblingUproar() { 826 827 SiblingUproar example = new SiblingUproar(); 828 829 example.model(); 830 831 if (example.search()) 832 System.out.println("Solution(s) found"); 833 834 example.getSearch().assignSolution(); 835 836 assertEquals( 837 "[Brian = 5,Nina = 3,Paula = 4,Russell = 1,Stuart = 2,Z = 2,angryAtBrian = 2,angryAtNina = 5,angryAtPaula = 1,angryAtRussell = 3,angryAtStuart = 4,boy = 2,cleaning_the_attic = 5,cleaning_the_basement = 3,cleaning_the_garage = 1,failed_to_return_rollerblades = 2,finished_cereal = 5,hid_violin = 3,hogged_television = 3,hung_up_on_friend = 2,imie = 2,knocked_over_chess_game = 5,kto = 1,let_dog_in_room = 4,let_gerbil_out_of_cage = 4,removed_light_bulbs = 1,sibling = 5,somebody = 3,someone = 2,used_up_hot_water = 1,washing_the_blinds = 4,washing_the_windows = 2,x1 = 1,x2 = 2,x3 = 3,x4 = 4,x5 = 5,y1 = 2,y2 = 3,y3 = 4,y4 = 5,y5 = 1]", 838 example.store.toStringOrderedVars()); 839 840 } 841 testSleepingArrangements()842 @Test public void testSleepingArrangements() { 843 844 SleepingArrangements example = new SleepingArrangements(); 845 846 example.model(); 847 848 if (example.search()) 849 System.out.println("Solution(s) found"); 850 851 example.getSearch().assignSolution(); 852 853 assertEquals( 854 "[2 = 2,3apart = 3,Green = 16,Mellie = 16,Nellie = 14,Ollie = 13,Pollie = 17,Rollie = 15,White1 = 14,White2 = 17,Yellow1 = 13,Yellow2 = 15,mellieRoomNo = 3,mellieRoomPosition = 5,nellieRoomNo = 2,nellieRoomPosition = 3,ollieRoomNo = 1,ollieRoomPosition = 1,pollieRoomNo = 2,pollieRoomPosition = 4,rollieRoomNo = 1,rollieRoomPosition = 2]", 855 example.store.toStringOrderedVars()); 856 857 } 858 testStonesOfHeaven()859 @Test public void testStonesOfHeaven() { 860 861 StonesOfHeaven example = new StonesOfHeaven(); 862 863 example.model(); 864 865 if (example.search()) 866 System.out.println("Solution(s) found"); 867 868 example.getSearch().assignSolution(); 869 870 assertEquals( 871 "[Ching = 2,Finland = 4,Italy = 2,Japan = 3,Ming = 3,Sung = 4,Tang = 1,USA = 1,beltbuckle = 1,darkgreen = 4,dragon = 2,grasshopper = 3,horse = 4,lightgreen = 3,red = 1,white = 2]", 872 example.store.toStringOrderedVars()); 873 874 } 875 testSudoku()876 @Test public void testSudoku() { 877 878 Sudoku example = new Sudoku(); 879 880 example.model(); 881 882 if (example.searchSmallestDomain(false)) 883 System.out.println("Solution(s) found"); 884 885 example.getSearch().assignSolution(); 886 887 assertEquals( 888 "[f00 = 8,f01 = 1,f02 = 3,f03 = 4,f04 = 2,f05 = 9,f06 = 7,f07 = 6,f08 = 5,f10 = 4,f11 = 6,f12 = 2,f13 = 5,f14 = 7,f15 = 1,f16 = 8,f17 = 3,f18 = 9,f20 = 7,f21 = 9,f22 = 5,f23 = 3,f24 = 6,f25 = 8,f26 = 1,f27 = 4,f28 = 2,f30 = 2,f31 = 4,f32 = 7,f33 = 1,f34 = 5,f35 = 3,f36 = 9,f37 = 8,f38 = 6,f40 = 5,f41 = 3,f42 = 9,f43 = 8,f44 = 4,f45 = 6,f46 = 2,f47 = 1,f48 = 7,f50 = 6,f51 = 8,f52 = 1,f53 = 2,f54 = 9,f55 = 7,f56 = 4,f57 = 5,f58 = 3,f60 = 9,f61 = 7,f62 = 8,f63 = 6,f64 = 1,f65 = 5,f66 = 3,f67 = 2,f68 = 4,f70 = 1,f71 = 2,f72 = 6,f73 = 7,f74 = 3,f75 = 4,f76 = 5,f77 = 9,f78 = 8,f80 = 3,f81 = 5,f82 = 4,f83 = 9,f84 = 8,f85 = 2,f86 = 6,f87 = 7,f88 = 1]", 889 example.store.toStringOrderedVars()); 890 891 892 example = new Sudoku(); 893 894 example.modelBasic(); 895 896 if (example.searchSmallestDomain(false)) 897 System.out.println("Solution(s) found"); 898 899 example.getSearch().assignSolution(); 900 901 assertEquals( 902 "[f00 = 8,f01 = 1,f02 = 3,f03 = 4,f04 = 2,f05 = 9,f06 = 7,f07 = 6,f08 = 5,f10 = 4,f11 = 6,f12 = 2,f13 = 5,f14 = 7,f15 = 1,f16 = 8,f17 = 3,f18 = 9,f20 = 7,f21 = 9,f22 = 5,f23 = 3,f24 = 6,f25 = 8,f26 = 1,f27 = 4,f28 = 2,f30 = 2,f31 = 4,f32 = 7,f33 = 1,f34 = 5,f35 = 3,f36 = 9,f37 = 8,f38 = 6,f40 = 5,f41 = 3,f42 = 9,f43 = 8,f44 = 4,f45 = 6,f46 = 2,f47 = 1,f48 = 7,f50 = 6,f51 = 8,f52 = 1,f53 = 2,f54 = 9,f55 = 7,f56 = 4,f57 = 5,f58 = 3,f60 = 9,f61 = 7,f62 = 8,f63 = 6,f64 = 1,f65 = 5,f66 = 3,f67 = 2,f68 = 4,f70 = 1,f71 = 2,f72 = 6,f73 = 7,f74 = 3,f75 = 4,f76 = 5,f77 = 9,f78 = 8,f80 = 3,f81 = 5,f82 = 4,f83 = 9,f84 = 8,f85 = 2,f86 = 6,f87 = 7,f88 = 1]", 903 example.store.toStringOrderedVars()); 904 905 } 906 testSurvoPuzzle()907 @Test public void testSurvoPuzzle() { 908 909 SurvoPuzzle survoPuzzle = new SurvoPuzzle(); 910 survoPuzzle.model(); 911 912 boolean result = survoPuzzle.searchWithMaxRegret(); 913 914 if (result) { 915 int numSolutions = survoPuzzle.search.getSolutionListener().solutionsNo(); 916 System.out.println("Number of solutions: " + numSolutions); 917 } 918 919 survoPuzzle.getSearch().assignSolution(); 920 921 assertEquals( 922 "[c_0 = 22,c_1 = 11,c_2 = 42,c_3 = 32,c_4 = 27,c_5 = 37,r_0 = 30,r_1 = 86,r_2 = 55,x_0_0 = 4,x_0_1 = 1,x_0_2 = 10,x_0_3 = 5,x_0_4 = 3,x_0_5 = 7,x_1_0 = 12,x_1_1 = 8,x_1_2 = 18,x_1_3 = 16,x_1_4 = 15,x_1_5 = 17,x_2_0 = 6,x_2_1 = 2,x_2_2 = 14,x_2_3 = 11,x_2_4 = 9,x_2_5 = 13,xa_0_0 = 4,xa_0_1 = 1,xa_0_2 = 10,xa_0_3 = 5,xa_0_4 = 3,xa_0_5 = 7,xa_1_0 = 12,xa_1_1 = 8,xa_1_2 = 18,xa_1_3 = 16,xa_1_4 = 15,xa_1_5 = 17,xa_2_0 = 6,xa_2_1 = 2,xa_2_2 = 14,xa_2_3 = 11,xa_2_4 = 9,xa_2_5 = 13]", 923 survoPuzzle.store.toStringOrderedVars()); 924 925 926 } 927 928 testTSP()929 @Test public void testTSP() { 930 931 TSP example = new TSP(); 932 933 example.model(); 934 935 if (example.searchMaxRegretForMatrixOptimal()) 936 System.out.println("Solution(s) found"); 937 938 example.getSearch().assignSolution(); 939 940 assertEquals( 941 "[Cost = 340,cities[10] = 2,cities[1] = 7,cities[2] = 3,cities[3] = 4,cities[4] = 6,cities[5] = 10,cities[6] = 1,cities[7] = 8,cities[8] = 9,cities[9] = 5,costs[10] = 49,costs[1] = 25,costs[2] = 26,costs[3] = 71,costs[4] = 19,costs[5] = 13,costs[6] = 76,costs[7] = 30,costs[8] = 23,costs[9] = 8,MutableVar[0] (0)[7, 6],MutableVar[1] (0)[3, 10],MutableVar[2] (0)[4, 2],MutableVar[3] (0)[6, 3],MutableVar[4] (0)[10, 9],MutableVar[5] (0)[1, 4],MutableVar[6] (0)[8, 1],MutableVar[7] (0)[9, 7],MutableVar[8] (0)[5, 8],MutableVar[9] (0)[2, 5]]", 942 example.store.toStringOrderedVars()); 943 944 } 945 946 testTunapalooza()947 @Test public void testTunapalooza() { 948 949 Tunapalooza example = new Tunapalooza(); 950 951 example.model(); 952 953 if (example.searchMostConstrainedStatic()) 954 System.out.println("Solution(s) found"); 955 956 example.getSearch().assignSolution(); 957 958 assertEquals( 959 "[2 = 2,carnival = 4,country = 3,grunge = 1,information = 3,metal = 2,mosh = 2,reggae = 4,s1 = 1,s2 = 0,s3 = 1,vendor = 1]", 960 example.store.toStringOrderedVars()); 961 962 } 963 964 testWhoKilledAgatha()965 @Test public void testWhoKilledAgatha() { 966 967 WhoKilledAgatha example = new WhoKilledAgatha(); 968 example.model(); 969 970 if (example.search()) 971 System.out.println("Solution(s) found"); 972 973 assertEquals(8, example.search.getSolutionListener().solutionsNo()); 974 975 } 976 977 testWolfGoatCabbage()978 @Test public void testWolfGoatCabbage() { 979 980 WolfGoatCabbage example = null; 981 int numberInnerMoves = 1; 982 boolean result = false; 983 984 while (numberInnerMoves < 20 && !result) { 985 986 example = new WolfGoatCabbage(); 987 example.numberInnerMoves = numberInnerMoves; 988 989 example.model(); 990 991 if (!example.searchMostConstrainedStatic()) 992 System.out.println("No Solution(s) found for " + example.numberInnerMoves + " innermoves"); 993 else 994 result = true; 995 996 numberInnerMoves++; 997 } 998 999 if (result == true && example != null) { 1000 example.getSearch().assignSolution(); 1001 } 1002 1003 assertEquals( 1004 "[cabbageOnBoatInMove1 = 0,cabbageOnBoatInMove2 = 0,cabbageOnBoatInMove3 = 1,cabbageOnBoatInMove4 = 0,cabbageOnBoatInMove5 = 0,cabbageOnBoatInMove6 = 0,cabbageOnBoatInMove7 = 0,cabbageStateInMove1 = 0,cabbageStateInMove2 = 0,cabbageStateInMove3 = 1,cabbageStateInMove4 = 2,cabbageStateInMove5 = 2,cabbageStateInMove6 = 2,cabbageStateInMove7 = 2,goatOnBoatInMove1 = 1,goatOnBoatInMove2 = 0,goatOnBoatInMove3 = 0,goatOnBoatInMove4 = 1,goatOnBoatInMove5 = 0,goatOnBoatInMove6 = 0,goatOnBoatInMove7 = 1,goatStateInMove1 = 1,goatStateInMove2 = 2,goatStateInMove3 = 2,goatStateInMove4 = 1,goatStateInMove5 = 0,goatStateInMove6 = 0,goatStateInMove7 = 1,left = 0,numberOnBoatInMove1 = 1,numberOnBoatInMove2 = 0,numberOnBoatInMove3 = 1,numberOnBoatInMove4 = 1,numberOnBoatInMove5 = 1,numberOnBoatInMove6 = 0,numberOnBoatInMove7 = 1,right = 2,wolfOnBoatInMove1 = 0,wolfOnBoatInMove2 = 0,wolfOnBoatInMove3 = 0,wolfOnBoatInMove4 = 0,wolfOnBoatInMove5 = 1,wolfOnBoatInMove6 = 0,wolfOnBoatInMove7 = 0,wolfStateInMove1 = 0,wolfStateInMove2 = 0,wolfStateInMove3 = 0,wolfStateInMove4 = 0,wolfStateInMove5 = 1,wolfStateInMove6 = 2,wolfStateInMove7 = 2]", 1005 example.store.toStringOrderedVars()); 1006 1007 } 1008 testZebra()1009 @Test public void testZebra() { 1010 1011 Zebra example = new Zebra(); 1012 1013 example.model(); 1014 1015 if (example.searchMostConstrainedStatic()) 1016 System.out.println("Solution(s) found"); 1017 1018 example.getSearch().assignSolution(); 1019 1020 assertEquals( 1021 "[blue = 2,coffee = 5,diplomat = 1,distance3 = -1,doctor = 2,dog = 4,english = 3,fox = 1,green = 5,horse = 2,italian = 2,japanese = 5,juice = 4,milk = 3,norwegian = 1,painter = 5,red = 3,sculptor = 3,snails = 3,spaniard = 4,tea = 2,violinist = 4,water = 1,white = 4,yellow = 1,zebra = 5]", 1022 example.store.toStringOrderedVars()); 1023 1024 } 1025 1026 } 1027